psychopy.org | Reference | Downloads | Github

My break in routine does not appear


#1

If this template helps then use it. If not then just delete and start from scratch.

Win10
v1.90.2

I have built a semantic categorisation task, there are 94 trials in total (2 repititions of 47 trials). I would like there to be two breaks, at trial 31 and 62.

I have my trial and breakroutine inside a loop, I have input within a code component:

if not (trials.thisTrialN in [31,62] and trials.thisTrialN == 0):
continueRoutine = False

The whole experiment works but no break is inserted as requested.

I do not know how to fix this as there is no error message to tell me what the issue is, would appreciate any help possible!

Thank you


#2

The and trials.thisTrialN==0 was unnecessary in the context of my repetitions so when deleted this solved the issues


#3

Great, yes that conditional statement would only be (not) True if trials.thisTrialN equalled 0 and 31 (or 62) at the same time, which it cannot.