So we’re setting up an experiment with 3 between-subject conditions, and I’d prefer having them all embedded within the same program. The loop for each is slightly different that the others - each one containing 2 identical routines, and 2 different ones. Based on the condition number assigned to the participant, I want a choice of 2 out of 3 loops bypassed so the participant only sees one.
I know one way to do this: in the frontmost routine throw a code block and if condition is of particular value, then thisloop.finished = True and continueRoutine = False. But this still continues the other routines within the loop once, which I don’t want. I can slap additional code blocks and additional continueRoutine = False onto each subsequent routine, but since 2 of them are the same between conditions, this leads to them always being skipped!
I could remake the two identical ones to each be unique, though they are kinda complicated and I am wondering if there is any alternative solution anyone can think of!
For example, is there a way of setting the nRep for a loop to 0 at the start of the loop? I assume not since all code has to be embedded within a routine and loops are not defined until they actually begin, so I don’t think that I can pre-emptively set them as finished before the first routine in them starts. But maybe I’m missing something here.
Thanks for any tips/thoughts!