This would need to be done in code. Insert a code component. In its “begin experiment tab”, put something like:
import copy
# create a list of filenames (use your actual names of course):
blocks = ['con01.xlsx', 'con02.xlsx', 'con03.xlsx', 'con04.xlsx', 'con05.xlsx']
# randomise it:
shuffle(blocks)
# make a copy and reverse it:
blocks_2 = copy.copy(blocks)
blocks2.reverse()
# add it to end of the original list:
blocks.extend(blocks2)
# check that it does what you want:
print(blocks)
Now your blocks loop:
- no longer needs to be connected to a conditions file (as the list of blocks is held in code now), and
- you’ll need to specify the
nReps
to be 10 so you get the correct number of blocks, and - it should be “sequential” rather than “random” now (not that it would make much difference here I guess).
Lastly, in your inner trials
loop, put this in the “conditions file” field:
$blocks.pop()
This takes the next filename in order from the blocks list.