Description of the problem:
I have a loop that runs one time and for each participant, one random item is chosen out of 13 items defined in the excel file:
So, I added a code component at Begin Experiment, and it goes as follows:
useRow = randint(0,14)
useRows = str(useRow)+":"+str(useRow+1)
Then, in Selected Rows of the loop I added the variable $useRows.
When running online in Pavlovia, I get the error message:“useRows is not defined”.