Open sesame Coroutines & Run if & Sampler
in OpenSesame
Hi !
I have a problem to trigger two "tone/samplers" with item coroutine.
If I insert my sampler without "Run if" the tone/sampler appears.
But, if I instruct a "Run if" : [correct_response] = 1, there is no tone. 😓
Do you have an idea ?
Thank a lot,
Guit
Comments
Hi @guipru,
This indicates that the condition is not met, hence the issue must be with your condition statement. In the Run if section, the code introduced is essentially Python, so there is no need to use the "[" and "]" brackets (plus note that other objects were you'd wantto use brackets, it is now recommended to use the "{" and "}" brackets; but anyeay, in the case of the "run if"; no brackets). The second issue, I believe, is that you used "=" (used in Python to assign a value to a variable) instead of "==" used to test a value against a variable.
Hope this helps,
Fabrice.
Hi Fabrice
Thank a lot for your response !!
It's good now.
Guit