How to alter value within an openended?


Author
Message
DannyPilgrim
DannyPilgrim
Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)
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

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
DannyPilgrim - 4/13/2021
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

<openended A1>
/ ontrialbegin = [values.typedword = 0]
/ ontrialend = [if(openended.A1.response == "Betrieb") {values.typedword = 1;} ]
/ stimulusframes = [1= A1]
/ position = (50%, 50%)
/ linelength = 40
/ numlines = 1
</openended>
DannyPilgrim
DannyPilgrim
Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)
Group: Forum Members
Posts: 37, Visits: 146
Dave - 4/13/2021
DannyPilgrim - 4/13/2021
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

<openended A1>
/ ontrialbegin = [values.typedword = 0]
/ ontrialend = [if(openended.A1.response == "Betrieb") {values.typedword = 1;} ]
/ stimulusframes = [1= A1]
/ position = (50%, 50%)
/ linelength = 40
/ numlines = 1
</openended>

Ahh, close enough!
Thank you very much!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search