Description of the problem:
Is there a way to end a particular trial (not a routine) if a condition is met? continueRoutine/break works when added to “Each Frame” section of the builder in Psychopy but not when added in PsychoJS to run it online.
From what I read in other posts, PsychoJS breaks cause the program to break out of all the loops as opposed to just the inner loop (which is presumably the loop within a trial). Using “continueRoutine = false;” leads to breaking out of the entire trial loop even if added in the Each Frame section. Using “trials.finished = true;” works similar.