continueRoutine = false. Pavlovia Experiment

Os: Sonoma 14.5
Psychopy version: 2024.2.4

URL of experiment: experiment [PsychoPy]

Description of the problem: I am trying to skip certain routines depending upon the condition that the participant is assigned to at the start of the experiment. When running the code locally, I have been able to use conditional logic and continueRoutine = false to achieve this. However, the same code does not work correctly online.

When running online, none of the components in the skipped routine are shown. However, a blank screen is shown for the duration of the routine.

I have tried the following fixes;

  1. moving the code to each frame.
  2. putting routineForceEnded = true after continueRoutine = false.
  3. I have also used the console to check that the conditional is being evaluated correctly (as far as I can tell it is).

Is there something specific about skipping routines in online experiments that I might be missing?

In the current version I would recommend skipping routines using routine settings.

skip if nextRoutine != "Generation"

Thank you! This is now working.