psychopy.org | Reference | Downloads | Github

Nested loop not working in Pavlovia

URL of experiment: https://gitlab.pavlovia.org/Mi_Lab/contextshift_encoding_cbb

Description of the problem:

I am designing an experiment in which there is a component where participants have to make a judgement about whether a digit is odd or even. This exists as a nested loop within a loop that is designed to play a series of videos (the odd even task comes after this). Even though this runs completely fine on PsychoPy, I get an Unspecified JavaScript error when trying to pilot it on Pavlovia. This error pops up after the first video has played, when the odd/even task is supposed to commence.

I believe this is a problem with the nested loop and not the custom code. After deleting the loop and setting the number text to 1 (rather than $Number, which is the column name of my spreadsheet), the experiment ran fine. I was hoping someone would be able to take a look at my experiment to get a better sense of what the problem is and a possible solution.

Thanks!