Description of the problem:
I recently created a simple temporal discounting task experiment on PsychoPy in which I have 160 trials total (2 reps of 80 trials) and I want to give the participants a break after every 40 trials.
I inserted this code component into the “Begin Routine” section of the “break2” routine, and this works just fine when I run it locally on my computer in Psychopy:
Here’s a picture of the builder view component as well for reference:
However, in Pavlovia when I run the experiment it shows the break screen after EVERY trial instead of just the specified trials that I want it to. I am assuming this has something to do with the way that Pavlovia/JS keeps track of the trial number that is somehow different from the way it is done in Psychopy, but as I am a coding newbie I am not sure how to fix this issue.
If anyone has any tips or tricks that would be greatly appreciated, thank you so much!