| Reference | Downloads | Github

Counterbalance issue with selecting just one condition


I have an experiment where there are four counterbalanced conditions, and I have attached the files here so that you can see how they are set up. I have a nested loop, where the outterloop uses the condfile as the conditions, and an inner loop that has $cond_file as the conditions.

When I run the study it randomly selects from the condfile, which is great, but it runs through all 4 conditions rather than just choosing one.

Is there anything I can do to make it so that only one of the four conditions is chosen?
If there is any other information I can provide please let me know!

cond1A.xlsx (9.9 KB)
cond1B.xlsx (9.9 KB)
cond2A.xlsx (9.9 KB)
cond2B.xlsx (9.9 KB)
condfile.xlsx (8.6 KB)

You can use a little bit of code at the end of the experiment/task to stop the outerloop from starting again. For example in the last routine you can have a code component with something like that in the end routine tab

myOuterLoopName.finished = True
1 Like

Hi Tandy,

That worked perfectly! Thank you so much!!