Can anyone tell me what the JS version of these python code snippets would be? I have a feeling this is probably pretty basic, but I don’t have any prior experience with Python or JS…
I have a snippet in the “begin experiment” section with:
myCount = 0
And I put this snippet in the “begin routine” section to exit the loop after 5 trial runs:
myCount = myCount + 1 if myCount > 5: trials_1.finished = True break
Please let me know if I can clarify anything. Thanks in advance.