I am making an experiment in Builder with 5 blocks (Mac/standalone/v1.90.3). My 4 experimental adapt blocks work fine in their nested loops which randomly present each block using a block order excel file in the outer loops condition filed and $variable in the inner loops.
My control block must always be presented first, so has its own loop setup (perhaps this is not the most elegant way to do this). My question is about how I want to select rows from my control excel file in a particular way on each trial:
My .xlsx file has 40 rows each linking to a .jpg:
The first 10 rows are part of group A
Next 10 are part of B
Next 10 group C
Last 10 are D
How do I randomly select 5 rows from each group on each trial? The desired outcome is that I have 20 randomly selected (in a constrained way) .jpg files I can use as the ‘movie’ for each trial in the control block.
I don’t understand how I could make selected rows field do this.
I have been trying to work out how to import random and then shuffle conditions, but can’t see where to add the code snippets and/or which code tab.
I’ve not found this solution here
or on other threads.
Can anyone help please?