How to randomly present associations?


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
Dave - 1/22/2024
Wasabi8888 - 1/22/2024
I modified this portion of the code as shown below, but it's still not working correctly. Could you please teach me how to properly make those elements match?

<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;
  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};


]
</block>


Those changes don't make any sense to me. I'm asking you once again to take a step back, read through your code, clarify for yourself what you intend it to do and comment it accordingly. We won't get anywhere as long as you don't put in the time and effortto do that, sorry.


To give you a hint, the way you determine the tag items -- which team is which -- is all wrong. You can't first determine these randomly and then do something else entirely. This should become very obvious once you actually take the time and reason about what your code does and when.

<block block_info_group>
/ onblockbegin = [
values.pic1 = list.sat_pic_group.nextvalue;
values.pic2 = list.sat_pic_group.nextvalue;
values.pic3 = list.sat_pic_group.nextvalue;
     // the tag (i.e. which team is which) items aren't supposed to be randomly determined here, they're determined according to your balancing below
//values.tag1 = list.sat_tag_group.nextvalue; // wrong
//values.tag2 = list.sat_tag_group.nextvalue; // wrong
//values.tag3 = list.sat_tag_group.nextvalue; // wrong
values.team = list.balanceteam.nextvalue; // here you actually determine which team is which and therefore this ought to determine the correct tag item numbers
if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE";
values.pic1con = "ingroup"; values.tag1name = "TEAM RED"; values.tag1 = 3;
values.pic2con = "outgroup"; values.tag2name = "TEAM GREEN"; values.tag2 = 1;
values.pic3con = "neutral"; values.tag3name = "TEAM BLUE"; values.tag3 = 2;}
if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED";
values.pic1con = "ingroup"; values.tag1name = "TEAM GREEN"; values.tag1 = 1;
values.pic2con = "outgroup"; values.tag2name = "TEAM BLUE"; values.tag2 = 2;
values.pic3con = "neutral"; values.tag3name = "TEAM RED"; values.tag3 = 3;}
if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN";
values.pic1con = "ingroup"; values.tag1name = "TEAM BLUE"; values.tag1 = 2;
values.pic2con = "outgroup"; values.tag2name = "TEAM RED"; values.tag2 = 3;
values.pic3con = "neutral"; values.tag3name = "TEAM GREEN"; values.tag3 = 1;}
]
/ trials = [1 = Group_Info]
/ recorddata = true
</block>




Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
Wasabi8888 - 1/22/2024
I modified this portion of the code as shown below, but it's still not working correctly. Could you please teach me how to properly make those elements match?

<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;
  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};


]
</block>


Those changes don't make any sense to me. I'm asking you once again to take a step back, read through your code, clarify for yourself what you intend it to do and comment it accordingly. We won't get anywhere as long as you don't put in the time and effortto do that, sorry.


Wasabi8888
Wasabi8888
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 6, Visits: 101
I modified this portion of the code as shown below, but it's still not working correctly. Could you please teach me how to properly make those elements match?

<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;
  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};


]
</block>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
Wasabi8888 - 1/22/2024
For example, in the instructions, it states, "Your team is 'TEAM RED,' the rival team is 'TEAM GREEN,' and the non-rival team is 'TEAM BLUE.' Circle is paired with Team Blue, square is paired with Team Green, and triangle is paired with Team Red.

However, in the demo_mismatch trials, it consistently indicates that this shape is matched with the rival team 'TEAM GREEN.' Additionally, in the block_formal_group, the value of Con_shape is not correctly paired with Con_label. I don't know how to resolve this issue.

<text txt_resp_mismatch>
/ items=("This is a MISMATCH!!!
So you'd press the '<%values.nRes%>' key with the <%values.nResFinger%> of your right hand
Remember, this shape matched with <% values.tagname %>.")
/ position = (50%, 80%)
/ fontstyle = ("Arial", 3%)
</text>

My point is this: Your selection here of pic and tag item numbers

/ onblockbegin = [
values.pic1 = list.sat_pic_group.nextvalue;
values.pic2 = list.sat_pic_group.nextvalue;
values.pic3 = list.sat_pic_group.nextvalue;
values.tag1 = list.sat_tag_group.nextvalue;
values.tag2 = list.sat_tag_group.nextvalue;
values.tag3 = list.sat_tag_group.nextvalue;


does not -- at all -- hang together with the rest.

values.team = list.balanceteam.nextvalue;
if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE";
values.pic1con = "ingroup"; values.tag1name = "TEAM RED";
values.pic2con = "outgroup"; values.tag2name = "TEAM GREEN";
values.pic3con = "neutral"; values.tag3name = "TEAM BLUE"}
if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED";
values.pic1con = "ingroup"; values.tag1name = "TEAM GREEN";
values.pic2con = "outgroup"; values.tag2name = "TEAM BLUE";
values.pic3con = "neutral"; values.tag3name = "TEAM RED"}
if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN";
values.pic1con = "ingroup"; values.tag1name = "TEAM BLUE";
values.pic2con = "outgroup"; values.tag2name = "TEAM RED";
values.pic3con = "neutral"; values.tag3name = "TEAM GREEN"}]


You cannot expect anything to "match" because you haven't done anyting at all to make those things match.


Wasabi8888
Wasabi8888
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 6, Visits: 101
For example, in the instructions, it states, "Your team is 'TEAM RED,' the rival team is 'TEAM GREEN,' and the non-rival team is 'TEAM BLUE.' Circle is paired with Team Blue, square is paired with Team Green, and triangle is paired with Team Red.

However, in the demo_mismatch trials, it consistently indicates that this shape is matched with the rival team 'TEAM GREEN.' Additionally, in the block_formal_group, the value of Con_shape is not correctly paired with Con_label. I don't know how to resolve this issue.

<text txt_resp_mismatch>
/ items=("This is a MISMATCH!!!
So you'd press the '<%values.nRes%>' key with the <%values.nResFinger%> of your right hand
Remember, this shape matched with <% values.tagname %>.")
/ position = (50%, 80%)
/ fontstyle = ("Arial", 3%)
</text>
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
Wasabi8888 - 1/22/2024
I used the nextvalue to randomly select the value for pic (1,2,3) and tags (1,2,3).
values.pic1 = list.sat_pic_group.nextvalue;
values.pic2 = list.sat_pic_group.nextvalue;
values.pic3 = list.sat_pic_group.nextvalue;
values.tag1 = list.sat_tag_group.nextvalue;
values.tag2 = list.sat_tag_group.nextvalue;
values.tag3 = list.sat_tag_group.nextvalue

Then I used "if" condition to link the values in the trials
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

"Upon reviewing the data file, I noticed that in the formal task, the associations between identities (the rival team, the non-rival team, and self team) and teams Team Green, Team Blue, or Team Red) did not match the associations specified in the previous instructions."

Look at the "formal task" -- explain how you tried to make sure that "the associations specified in the previous instructions" match what happens in the "formal task."

Explain, with data, where you believe there is a mismatch.
Wasabi8888
Wasabi8888
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 6, Visits: 101
I used the nextvalue to randomly select the value for pic (1,2,3) and tags (1,2,3).
values.pic1 = list.sat_pic_group.nextvalue;
values.pic2 = list.sat_pic_group.nextvalue;
values.pic3 = list.sat_pic_group.nextvalue;
values.tag1 = list.sat_tag_group.nextvalue;
values.tag2 = list.sat_tag_group.nextvalue;
values.tag3 = list.sat_tag_group.nextvalue

Then I used "if" condition to link the values in the trials
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
Wasabi8888 - 1/22/2024
Dave - 1/22/2024

I asked you to explain your reasoning and comment your code, not to post an uncommented excerpt.
I implemented randomisation using your example.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext1>
/ items = myitems
/ select = values.itemnumber1
/ position = (25%, 50%)
</text>

<text mytext2>
/ items = myitems
/ select = values.itemnumber2
/ position = (50%, 50%)
</text>

<text mytext3>
/ items = myitems
/ select = values.itemnumber3
/ position = (75%, 50%)
</text>

<list listnumber>
/ items = (1,2,3)
</list>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
/ selectionrate = always
</list>

<values>
/ itemnumber1 = 0
/ itemnumber2 = 0
/ itemnumber3 = 0
/ listnumber = 0
</values>

<block example>
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
  values.listnumber = list.listnumber.nextvalue; // pick the list to use in this trial at random

  // pick the three item numbers from the selected list
  values.itemnumber1 = list.list_of_lists.nextvalue;
  values.itemnumber2 = list.list_of_lists.nextvalue;
  values.itemnumber3 = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext1, mytext2, mytext3]
/ validresponse = (57)
</trial>

Sorry, that's not responsive to my question. I asked you to comment your code, explain your reasoning, and explain how you believe the bits of selection code you implemented ties in to what happens in the trials in your code.

Wasabi8888
Wasabi8888
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 6, Visits: 101
Dave - 1/22/2024

I asked you to explain your reasoning and comment your code, not to post an uncommented excerpt.
I implemented randomisation using your example.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext1>
/ items = myitems
/ select = values.itemnumber1
/ position = (25%, 50%)
</text>

<text mytext2>
/ items = myitems
/ select = values.itemnumber2
/ position = (50%, 50%)
</text>

<text mytext3>
/ items = myitems
/ select = values.itemnumber3
/ position = (75%, 50%)
</text>

<list listnumber>
/ items = (1,2,3)
</list>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
/ selectionrate = always
</list>

<values>
/ itemnumber1 = 0
/ itemnumber2 = 0
/ itemnumber3 = 0
/ listnumber = 0
</values>

<block example>
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
  values.listnumber = list.listnumber.nextvalue; // pick the list to use in this trial at random

  // pick the three item numbers from the selected list
  values.itemnumber1 = list.list_of_lists.nextvalue;
  values.itemnumber2 = list.list_of_lists.nextvalue;
  values.itemnumber3 = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext1, mytext2, mytext3]
/ validresponse = (57)
</trial>

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 99K
Wasabi8888 - 1/22/2024
Dave - 1/22/2024

The first thing you need to do is to explain how you implemented the random associations and why you did it that way.
I have implemented random associations using the bolded code, but the associations in the instructions do not match the association demo.


<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;

  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};
]
</block>

I asked you to explain your reasoning and comment your code, not to post an uncommented excerpt.

In particular, you should focus and explain how -- you believe -- that selection code ties in to what happens in the trials.
Edited 4 Months Ago by Dave
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search