Commit 8bd5824f authored by Pau Alexander's avatar Pau Alexander

testing correct response storing

parent 867249af
......@@ -1314,10 +1314,10 @@ function trialEncodingRoutineEnd(trials) {
_pj_snippets(_pj);
if ((responseEncoding.keys !== null)) {
if (_pj.in_es6(responseEncoding.keys[0], correct_responseEncoding)) {
psychoJS.experiment.addData.addData("correctEncoding", "1");
psychoJS.experiment.addData("correctEncoding", "1");
console.log("response OK");
} else {
psychoJS.experiment.addData.addData("correctEncoding", "0");
psychoJS.experiment.addData("correctEncoding", "0");
console.log("response NOK");
}
}
......
......@@ -1311,10 +1311,10 @@ function trialEncodingRoutineEnd(trials) {
_pj_snippets(_pj);
if ((responseEncoding.keys !== null)) {
if (_pj.in_es6(responseEncoding.keys[0], correct_responseEncoding)) {
psychoJS.experiment.addData.addData("correctEncoding", "1");
psychoJS.experiment.addData("correctEncoding", "1");
console.log("response OK");
} else {
psychoJS.experiment.addData.addData("correctEncoding", "0");
psychoJS.experiment.addData("correctEncoding", "0");
console.log("response NOK");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment