Correct Answers - properly defined, but in one case not working
Hey guys,
Once again I am having troubles with my (online/android) stroop experiment. You always have to pick one out of 4 colours which is correct. Three of four colors are working correctly (i.e., they are assigned to the correct answer). Only for yellow ("gelb" in the file), I always get a correct answer, even if I click on the red/blue/green field (so yellow is always counted as correct, no matter which colour you chose). The problem exists even though the correct answers are defined correctly in the loop table. Also, the additional inline scripts apply for the whole loop.
What am I doing wrong? What do I have to change so that yellow is only counted as correct when the yellow field is chosen? I will enclose my file.
Best, Mad
Comments
Hi Mad,
It probably has nothing to do with yellow, but with yellow being assigned to button 1.
I could reproduce your problem and even though I have no clue why it made a difference, replace the code in your inline_javascript with this code here:
vars.correct = vars.response == vars.correct_responseAt least that solved the issue for me. Can you confirm?
Eduard
Hi Eduard,
great, it's working now!
Thanks a lot
Mad