Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Call variable from loop item in Python inline script

RMHRMH
edited November 2015 in OpenSesame

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!

http://img.cogsci.nl/?q=563d7af9d61bc

Comments

  • edited 8:46AM

    Hi,

    It looks like you're running an older version of OpenSesame; the var.my_variable syntax is new in 3.0. So you could:

    • Update to OpenSesame 3.0.
    • Read the documentation for your version. You can select a version of OpenSesame in the drop-down box at the top-left of the documentation area.

    Cheers!
    Sebastiaan

  • RMHRMH
    edited 8:46AM

    Thank you for the feedback - I appreciate it! I got it to work now.

Sign In or Register to comment.