I am working on an experiment using the Builder in PsychoPy and uploading it to Pavlovia. In my experiment, I am shuffling videos and feedback. The Feedback_list is:
var Feedback_list = [“Correct”, “Incorrect”, “Corr_inc”, “Praise”, “Reminder”, “Praise_and_reminder”]
At the beginning of my experiment, I set Video_num = -1, and then, when I enter a loop, I incrementally add 1 to Video_num like so:
Video_num = (Video_num + 1);
My experiment uploads to Pavlovia with no error. However, when I run it, I am getting an error on this line:
Feedback = Feedback_list[Video_num];
with this error message:
TypeError: Cannot read property ‘0’ of undefined.
I am not sure why I am getting this error or why it is not pulling from the first instance in the shuffled Feedback_list.
Thank you in advance.