Hello,
So I'm making a little bit of progress and I wanted to ask you about lists within lists. As it stands right now, I have followed your earlier advice and created multiple lists that have all possible combinations of my ocean-mountain image pair (left/right), probe position (left/right), and probe type (circle/square). This yielded 12 lists, 3 for PIOP, PIMP, fillerPIOP, and fillerPIMP. These represent 4 unique combinations for probe in ocean position trials, and 4 unique combos for probe in mountain trials. These lists are coded as:
Note: for picture_position, 1 = ocean on right, 2 = ocean on left
for probe_type, 1 = circle, 2 = square
for probe_position, 1 = right, 2 = left.
<list PIOP_picture_position_list>
/items = (1,1,2,2)
/selectionmode = random
</list>
<list PIOP_probe_type_list>
/items = (1,2,1,2)
/selectionmode = list.piop_picture_position_list.currentindex
</list>
<list PIOP_probe_position_list>
/items = (1,1,2,2)
/selectionmode = list.piop_picture_position_list.currentindex
</list>
My basic question is, how do I get each number, 1 and 2, to represent a combination of the ocean-mountain pair in the two different orientations? My initial instinct was to follow a similar logic that was in the initial code under the <trial>, which was as follows:
<trial PIOP>
/ontrialbegin = [values.PIOP_picture_position = list.PIOP_picture_position_list.nextvalue; values.PIOP_probetype = list.PIOP_probe_type_list.nextvalue; values.PIOP_probe_position = list.PIOP_probe_position_list.nextvalue]
/ontrialbegin = [if (values.PIOP_picture_position == "1") {values.ocean_x = values.target_right_x; values.mountain_x = values.target_left_x}]
/ontrialbegin = [if (values.PIOP_picture_position == "2") {values.ocean_x = values.target_left_x; values.mountain_x = values.target_right_x}]
/ontrialbegin = [if (values.PIOP_probe_type == "1") {values.probe_type = 1}]
/ontrialbegin = [if (values.PIOP_probe_type == "2") {values.probe_type = 2}]
/ontrialbegin = [if (values.PIOP_probe_position == "1") {values.probe_x = values.target_right_x; values.mountain_x = values.target_left_x}]
/ontrialbegin = [if (values.PIOP_probe_position == "2") {values.probe_x = values.target_left_x; values.mountain_x = values.target_right_x}]
/stimulusframes = [1 = oceanimage, mountainimage; 2 = probe]
/stimulustimes =
So, instead of referencing a specific orientation of the ocean/mountain, I simply create an if statement, that then specifies the orientation based on the selected values of the picture_position, probe_type, and probe_position. Does this seem correct? If not, I am wondering how I can specify the orientation of the pictures using code similar to what you posted last year when you had three text stimuli representing the values of 1,2,3:
<text stimtext>
/ items = ("A", "B", "C")
/ select = values.stim
/ hposition = values.position
</text>
To use this code as an analogy, I am wanting to replace the letters, A, B, (omit C), with specific combinations of ocean left/mountain right, and ocean right/mountain left. The same would be true for the probe position, and probe type. If you have any advice, I would greatly appreciate it. Thank you.