Group: Forum Members
Posts: 23,
Visits: 73
|
Hello, I ran into issues using multiple if statements in inquisit version 4 that I solved myself, but could not find the solution documented anywhere, so I thought I'd share.
When using multiple if statements in, for example, ontrialend, they cannot all be placed in the same on trial end section or else I believe only the first will run. ie. this will NOT work: / ontrialend = [ if (correct==1) {values.response = 1} else {values.response = 2}
if (latency > values.resp_window) {values.inwindow = 0;} else {values.inwindow = 1;} ]
Instead they must be placed in separate ontrialend sections:
/ ontrialend = [ if (correct==1) {values.response = 1} else {values.response = 2} ] / ontrialend = [ if (latency > values.resp_window) {values.inwindow = 0;} else {values.inwindow = 1;} ]
|