I’m currently working on a study where I would like the participant to be taken to different screens depending on responses they have given using the mouse component.
In really simple terms, in Routine1 if the participant presses PolygonA they will go straight to the next trial, while if they press PolygonB they will be shown an additional screen, Routine2, before continuing on to the next trial.
To do this, I have inserted a code component at the top of Routine2, and in the ‘Begin Routine’ tab, I’ve written:
if routine1_mouse.clicked_name ==‘PolygonA’:
continueRoutine = False
(where the mouse component is named ‘routine1_mouse’)
This works perfectly fine when run locally, but, when uploaded to Pavlovia, pressing either button (PolygonA or PolygonB) takes me to Routine2.
How do I ensure only a PolygonB click takes me to Routine2?
I’m really sorry as I’m sure this is a really simple question but any help would be really appreciated!