So I have a welcome screen routine at the beginning of my experiment, which has a code component initializing all variables I’m using for the experiment. In other routines, I modify these variables according to the current task. These work fine offline, however when I’m online I get errors or issues stating that those variables are undefined. I tried to refer to these variables using .this but it doesn’t help. What can I do?
For example, I had a function to create semi-random trials for my liking and suitable for my experiment design. The function was defined at this same code component, however when I went online it wasnt recognized by JS, so I had to move the function to the same scope where I used it. Referring to it using .this didn’t help.