PsychoPy version v3.2.4
**Standard Standalone? yes
What are you trying to achieve?:
I created a reading task with a routine containing a code component that instructs to have a break after given trials. This works fine. I created a second routine with a second batch of stimuli (I need some stimuli from the two routines to be further apart so I had to separate them) and literally copied each component from the first routine. This time the break doesn’t appear. I tried changing the trial numbers in the code component, so instead of
if not trials.thisN in [1,3]: continueRoutine = False else: print(trials.thisN)
it now says
if not trials.thisN in [7,9]: continueRoutine = False else: print(trials.thisN)
but that didn’t work either (I only have 6 stimuli in each routine for the moment, it’s temporary).
The rest of the routine works except for the break.
Any ideas why ? Does the problem come from the trial numbers ? If so, can I rather say “have the break routine every 2 trials” for instance, like with a percentage ? I saw some post using
if your_trial_number % 2 == 0
but that created an error (“your_trial_number not defined”).
Thanks a lot, again.