I don’t recommend using that method: (continueRoutine=False) The reason for it: it can fail if you have a video in the conditional routine, and it is a really bad kind of hack.
I often had the error that was related to opening and closing video in the same frame (OpenGL OSError). Besides it is a hack, since Routine code and even Frame code runs once instead of not running on a conditional routine, which should be the preferred logic. (If something is not to be run, then code associated with it should not be running as well, except for whole experiment code).
I had to use a secondary hack to work without the session collapsing, which was to use ‘continue’ (next loop iteration, because it was in a loop) instead of 'continueRoutine=False`, however, this you can only use if the conditional routine is within a loop AND it is the last routine in the loop you want to see or not. This however avoided the video collapse, because video load came after this.
The other problem I faced, that in version 2020.1 this only worked if continueRoutine=False was put into “every frame” slot, but in 2020.2 it was (correctly) needed to be put into “every routine” slot. So it is not stable.
The correct and most clean way is to use a loop around the conditional routine. This way you can put the conditional directly into the number of loops and surround it with an int conversion. Like this: $int(myConditional)) . This routine will be running when myConditional is True and not run when myConditional is False. This is not a hack, because this really prevents the whole routine with the code to execute.