URL of experiment: https://gitlab.pavlovia.org/DuderstadtV/leson_onlinepilot_adj_debug
Description of the problem:
The following code should generate a number between 485 and 515:
Number.parseInt((orange * 1000));
orange is a variable defined in an outer loop with values between 0,485 and 0,515 out of an excel sheet. I use this code to select different stimuli and it works just fine in another experiment, but I get NaN as output right now. The only clue I have is that maybe JS has problems to use variables out of an outer loop. Does anyone know a solution?