"Take a break" works locally but not online

The experiment structure is attached here as a figure. There is a loop (trials) that includes three components: SearchTrial (the task of the trial), feedback (correct or incorrect for that trial), and TakeABreak (this routine should be skipped on most trials. This one contains the continueRoutine = False). PsychoPy correctly interpreted the commands, but Javascript did not.

By the way, some problems I encountered in PsychoPy to JS seem intractable. Perhaps there’s a PsychoPy development issue here. From Builder to JS works well if there aren’t any customized codes inserted into Builder. When codes are inserted, the converted JS just doesn’t seem to handle the codes well - it can’t find variables, functions, etc.

Perhaps this is a major area of further development for PsychoPy.