continueRoutine = False is quite slow online, screens still flash

URL of experiment: Pavlovia

Description of the problem:

My task demands a pretty long sequence of routines which are all a part of one task loop.
In some conditions, dependent on participant’s responses, I need to skip several trials that were specified in the loop sheet.

A solution that works in psychopy is to skip routines using if statements within routines and execute the statement: continueRoutine = False

However, when I put the experiment online, the content of these skipped routines still appears on the screen.

It would be great if you could let me if there’s a way to ensure the screens don’t flash, or an alternative way of skipping trials specified in a loop.

Best wishes,

Hi @milan, an alternative is to surround the respective routines with a dummy loop and specify its number of repetitions to be 0 or 1 in a code component preceding this loop.

1 Like

Have you put this into Begin Routine or Each Frame? The former is better.

Thanks for the quick response! It was in Begin Routine already, but good thinking thanks!

Thanks @ajus that worked very well!