continueRoutine = false, but routine still running without stimuli

Blank is generally better. To clarify, You ARE seeing the “No test in this trial” message come up?

If so, I’m not sure why continueRoutine = False isn’t working for you but there is an alternative method that should work.