URL of experiment: https://pavlovia.org/run/AkaiRed/pysst/html/
Description of the problem:
I’m trying to make a simple stop-signal task.
Ok, here’s the problem. Participant respond with left or right button.
If the signal sign comes up, I want participant to stop immediately.
This is a part of my code snippet which works pretty nice.
The problem is that I want to replace $corrAns variable only when the signal is true.
I’ve tried null, None, undefiend but nothing works.
The code structure works fine in local environment,
so I think it is a web-specific problem.
It’s gonna be a lot of help if anyone can make a comment about this.
P.S. Why not simply add another column in my condition file?
That’s because I need to use code to pseudo-randomize my trials.
(no consecutive signal trials)
If someone can solve this problem more easily, that’s welcoming!