Hi, I just realized that I need to change my custom code from python to JS in order to run my experiment properly in Pavlovia.
I have the following code in the “End Routine” tab of a trial loop (enclosed inside another loop)
if trials.thisN == 0: trials.finished = True # end the loop early
How should I change it to JS? This should be really easy but I’m having a hard time since I don’t code in JS. Could someone give me a hand? Thanks