[solved] Numerical variable values
A short question: how do I stop OS from auto-correction my "0010" variable values to "1"? I've tried writing it directly in the script editor, but when I test the experiment, some variables will again have been corrected as above.
Best regards,
Jákup
Comments
ITA
We will come back to you as soon as possible.
Did you like my answer? Feel free to

Hi Jakúp,
OpenSesame interprets values in the simplest possible way:
Because in Python
print int("0010")gives
OpenSesame interprets "0010" as "10".
What do you need the "0010" values for? Is it possible to, for example, simply rename them to "_0010"? By doing so they will be interpreted as strings rather than integers.
I hope this helps!
Best wishes,
Lotje
Did you like my answer? Feel free to

Hello Lotje.
Thank you very much for your clarification!
I needed them for presenting stimuli in the form of 100+ images, with numerical file names, but solved it, as you've suggested by naming the variables for example ".0010."
Best regards,
Jákup