Group: Forum Members
Posts: 37,
Visits: 146
|
Hello everyone!
Currently I am programming an experiment where people have to type a specific word with their keyboard within an textbox. I specified a column named "typedword" with the number "0", see below:
<values> /typedword = 0 </values>
<data> /separatefiles = true / columns = (build computer.platform date time subject blockcode blocknum trialcode trialnum values.congruency stimulusitem response correct latency values.condition values.r_trialnum values.typedword) </data>
Within the following textbox of the openended.A1 the subjects have to type the word "Betrieb". When they type this word I'd like the value of "typedword" to change from "0" to "1", see below:
<openended.A1> / ontrialbegin = [values.typedword = 0] / branch = [if(openended.A1.responsetext == "Betrieb") {values.typedword = 1;} ] / stimulusframes = [1= A1] / position = (50%, 50%) / linelength = 40 / numlines = 1 </openended>
What do I have to change here exactly? Is it even possible to change it the way I need it?
Thank you very much for your help! Danny
|