Displaying 2 images defined by the same variable but in different sequences (rolling)
in OSWeb
Hello! Apologies if this question has already been addressed.
In a sketchpad, I want to sequentially display two images per trial in the order defined by a variable called [Theme]. However, while one image should be displayed exactly according to the sequence in the loop table, the other one should start with the second row.
Basically Image A = Theme and Image B = roll 1 Theme.
Of course, I could simply make another column and paste in the row values myself but I was wondering if there was a more elegant solution with OpenSesame or Javascript.
Thanks!
Comments
Hi @vaishtables,
Can you reformulate and provide more information? I don't understand your description. It sounds as if you want the program to use information from a row different from that being executed. That just can't be done. The two images should be coded in distinct variables in the same row. If you have complicated constrains regarding the arrangement of the relationshipo between the images from one trial to another, my recommendation would be to set up the whole sequence of stimuli through code ahead of the loop, store it in arrays, and then populate the loop on the fly from these arrays. Alternatively, if the arrangement is very complex and may end up with the task getting stuck, you could prepare stimuli files offline using whatever programming language you like, save these as CSV files, and randomly select one of these for each subject to populate the loop.
Hope this helps,
Fabrice.