URL of experiment: https://run.pavlovia.org/MJB/immanentjustice/html/
Description of the problem:
The experiment flow contains catch trials which only run on set trial numbers.
There is a piece of code that runs at the start of the routine, which determines whether a catch trial is to be run. If not, the command is continueRoutine = false.
There is a separate code component set to run on each frame of the catch trial routine which handles what is shown on the trial.
This works well locally, but online it appear that the continueRoutine command is ignored and a catch trial is set to occur after EACH trial. This throws an error message because the components to be displayed on a catch trial are then not defined (they are defined in the piece of code at the beginning of the routine, but only when the right trial number is true).
My sense is that continueRoutine = false does not work on JS.
But it could also be that the timing with ‘begin Routine’ and ‘Each Frame’ works differently in JS than locally.
Can you please advise?