[solved] Call variable from loop item in Python inline script
I am fairly new to open sesame and Python and trying to set up an experiment.
The independent variable of the experiment is the number of distractors. I have set up the different possible values for the IV in the loop item in Open Sesame.
In Open Sesame syntax I know I can call on variables from the loop item like this: [my_variable].
I am using a Python inline script and was wondering what syntax I would have to use here to call on the variable. I tried var.my_variable which did not work.
I tried finding the information on the website but couldn't seem to figure it out.
Any advice or help is very much appreciated!
Comments
Hi,
It looks like you're running an older version of OpenSesame; the
var.my_variablesyntax is new in 3.0. So you could:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you for the feedback - I appreciate it! I got it to work now.