I set the nRep of a routine of the experiment to a custom value (ExpLoop / ControlLoop), and it works completely fine within PsychPy. However, when transferring it to Pavlovia, I continue running into the error ~ TypeError: Cannot read properties of undefined (reading ‘0’)
The random number is generated utilizing the below code in PsychoPy:
list1 = [1, 2, 3, 4]
util.shuffle(list1)
randomb = list1.pop()
if randomb == 4:
ExpLoop = 0
ControlLoop = 1
elif randomb < 4:
ExpLoop = 1
ControlLoop = 0