If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10):
PsychoPy version (2021.1.4):
**Standard Standalone? y
What are you trying to achieve?:
In a single loop, I have 5 routines (please see image). In the second routine (RespOptions), I am collecting participant responses (1, 2, and 3). If they respond with “3” I would like participants to see the rest of the routines in the loop. If they respond “1” and “2”, however, they should return back to the first routine in the loop and not do routines three, four, and five.
What did you try to make it work?:
I tried using a code component in routine 3 (verifySounds) where in the begin routine tab I wrote
if RespNOsKeys.keys= 1,2:
continueRoutine = false
I am not sure this code is correct, and I am not sure in which routine I should put the code.
What specifically went wrong when you tried that?:
Code does not work. Experiment proceeds no matter which response is input.Preformatted text