Hello
the following toy-experiment presents numbers from 1-60 in four blocks, 1-15, 16-30, 31-45, 46-60 in random order. Here is the flow
In new block, create a code-component with the following content in the Begin Experiment tab:
useRows = '0:1'
wordList = ['0:15','15:30','30:45','45:60']
shuffle(wordList)
I initalize a variable useRows, a list wordList, and shuffle the list wordList.
In the Begin Routine tab insert
useRows = wordList.pop()
This assigns a value of wordList to useRows and deletes the value from the list wordList.
The text-component textNewBlock just shows an asterix to signal a new block. I inserted it for testing purposes. The block-loop is specified as follows:
The text-component in the the trial-routine shows the stimuli, stim, specified in a condition-file called FourLists.xlsx. In the example, stim are integers from 1 to 60. The trial-loop is specified as follows:
The variable useRows specifies which rows are selected from FourLists.xlsx.
Best wishes Jens