skip to end


Author
Message
JuliaNo
JuliaNo
Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)Esteemed Member (1.8K reputation)
Group: Forum Members
Posts: 19, Visits: 97
Hi, I want to ask a question and determine if people can continue with the experiment based on their answer. I added an example above (not exactly the question I will use, but you get the idea). If people click "yes" the experiment should just continue, but if they click "no" or "who" participants should be sent to the postinstructions or kicked out of the experiment. I know I need an if statement for this (in the trial specification? block specification?) something like if trial.mytrial.response == "yes" continue else abort, but I don't know how to put this exactly.


<trial mytrial>
/ stimulusframes = [1=question, yes, no, who]
/ inputdevice = mouse
/ validresponse = ("yes", "no", "who")
</trial>

<text question>
/items = ("Do you agree that Dave is a pretty cool guy?")
</text>

<text yes>
/ items = ("Yes")
/ txbgcolor = grey)
/ position = (40%, 60%)
/ vjustify = center
</text>

<text no>
/ items = ("No")
/ txbgcolor = grey)
/ position = (50%, 60%)
/ vjustify = center
</text>

<text who>
/ items = ("Who is Dave?")
/ txbgcolor = grey)
/ position = (60%, 60%)
/ vjustify = center
</text>

<block ThanksDave>
/ trials = [1= mytrial]
</block>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
JuliaNo - 7 Years Ago
Dave - 7 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search