+x> I could code this as
>
> <list corrrect_answer_trial01>
> / items = ("green")
> </list>
Yes, that is one way to do it. And then you could have a list of lists tied to values.current_list (many such lists already exist in the script, cf. <list masterlist>, <list list_colornames_left>, <list list_colornames_right>, etc.)
<list list_correct_answer>
/ items = (list.corrrect_answer_trial01.item.1,
...,
list.corrrect_answer_trial22.item.1)
/ selectionmode = values.current_list
</list>
and make use of that just like you already make use of the other lists set up in exactly the same way.
Hi Dave,
This is the logic I implemented
if (values.current_list == 1 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial01 == 1;
} else if (values.current_list == 1 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial01 == 0;
} else if (values.current_list == 2 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial02 == 1;
} else if (values.current_list == 2 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial02 == 0;
} else if (values.current_list == 3 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial03 == 1;
} else if (values.current_list == 3 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial03 == 0;
} else if (values.current_list == 4 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial04 == 1;
} else if (values.current_list == 4 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial04 == 0;
} else if (values.current_list == 5 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial05 == 1;
} else if (values.current_list == 5 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial05 == 0;
} else if (values.current_list == 6 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial06 == 1;
} else if (values.current_list == 6 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial06 == 0;
} else if (values.current_list == 7 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial07 == 1;
} else if (values.current_list == 7 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial07 == 0;
} else if (values.current_list == 8 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial08 == 1;
} else if (values.current_list == 8 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial08 == 0;
} else if (values.current_list == 9 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial09 == 1;
} else if (values.current_list == 9 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial09 == 0;
} else if (values.current_list == 10 && trial.trial_choose.response == "responseoption_trialdecide_color1"){
values.accuracy_trial10 == 1;
} else if (values.current_list == 10 && trial.trial_choose.response == "responseoption_trialdecide_color2"){
values.accuracy_trial10 == 0;
Then I output values.accuracy_trial1-22 in the summary sheet. All zeros my logic must be wrong