Hi Jeremy,
In my experiment, I wanted to first offer some control tasks for people, and if they managed them with no more than 2 mistakes, then let them into the actual experiment. However, I am unable to do so consistently for some reason.
I am using “correct” variable to track the number of correct responses, which is initialized as
newVar("correct", 0).global(),
The code I am using for evaluating the number of correct answers is
newKey("answerTrain", "YN").log().wait()
.test.pressed("N")
.success(getVar("correct").set(v=>v+1)),
And then, in the trials, I use
getVar("correct").test.is(/[789]/).failure(end()),
And once they are done, I provide them with either a correct code or a code that signals they haven’t completed the experiment well (using the same code as above).
Sometimes it works as intended, other times it doesn’t, and I am not able to figure out why. The idea seems to be good in theory, but the practice proves otherwise. The link to my project is https://farm.pcibex.net/r/XMvnEu/
Thanks in advance!