URL of experiment: https://run.pavlovia.org/TheSav/conda_psychopy3-withpolys/html/
Hi All, I am attempting to debug a latent inhibition program.
I have custom code in builder which I am attempting to manually convert to JS. I’m new to JS and have attempted the following:
However, the first issue I encounter is that my variable “score_learn” is not defined and the program stalls on line 813. However, the variable is defined in the function experimentInit() on line 163. (This is done by defining it in the begin code component of my custom code - code2.)
Are variables local to the function? How do I get the program to update the variable on each trial? Sorry, but I’m beginning from a low baseline.