If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10):
PsychoPy version (e.g. 3.2.4.x):
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
familiarizing myself with psychopy builder and online experiment coding
What did you try to make it work?:
My experiment is super simple right now. I have a “var num_learn = 12” variable declared in Begin Experiment. For my first learn trials experiment, I refer to num_learn using $num_learn. But when I run it, I keep getting the “NameError: name ‘num_learn’ is not defined” message.
I used Python previously and there was no problem. I wrote the same code in JS before I pushed it online. I got the same “ReferenceError” when I tried to run it online. So I went back to the builder and removed the Python code (when I had both codes, there was no problem) and worked on the JS code. But I keep running into this problem and now I have no idea what’s happening.
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.