Hi, I have a question pertaining to this topic. I also need to present stimuli in a particular order for each participant, and this method works perfectly for that. However, my previous method for identifying which stimulus is presented no longer works here. Namely:
if (picture.practicequaddle.nextindex <= 10 )
values.currentcsvalue = parameters.firstcsvalue;
else
values.currentcsvalue = parameters.secondcsvalue;
When I had my stimuli in an ordered <item> list nextindex (and currentlistitem for that matter) corresponded to the place of the stimulus in that list, but apparently they are not actually coupled because now that my <item> list looks like this, it no longer works:
<item practicequaddles>
/ 15 = "lossQ5.png"
/ 7 = "gainQ7.png"
/ 19 = "lossQ9.png"
/ 6 = "gainQ6.png"
/ 3 = "gainQ3.png"
/ 14 = "lossQ4.png"
/ 5 = "gainQ5.png"
/ 18 = "lossQ8.png"
/ 13 = "lossQ3.png"
/ 8 = "gainQ8.png"
/ 1 = "gainQ1.png"
/ 12 = "lossQ2.png"
/ 9 = "gainQ9.png"
/ 20 = "lossQ10.png"
/ 4 = "gainQ4.png"
/ 10 = "gainQ10.png"
/ 11 = "lossQ1.png"
/ 16 = "lossQ6.png"
/ 2 = "gainQ2.png"
/ 17 = "lossQ7.png"
</item>
Instead, currentitemnumber always numbers them 1 through 20 sequentially. I had hoped to use the numbers after the slash as a shorthand for the stimulus name, so that I could tell the program to present the first value for each 'gain' stimulus (all numbered 10 and lower) and present the second value for each 'loss' stimulus (all numbered 11 and higher).
Is there a way to read out this number from the item list if not with nextindex or currentlistitem? I would prefer to not have to write a statement saying "if (currentitem == "gainQ1.png" || currentitem == "gainQ2.png" || ...)" et cetera. This would be easier with wildcards but I haven't seen any function like that in Inquisit.