Millisecond Forums

presentation of stimuli that depends on participants' response

https://forums.millisecond.com/Topic13039.aspx

By kasia.j - 4/16/2014

Hi, We are preparing an experiment in which participants are asked to gather information about four options which names are presented simultaneously on the screen. After they click on one of the options an information about this option should appear on the screen. They can choose which option they want to get information about and can ask for several information about each option (previous information disappears when new information is presented). In our script we have sets of information about each option (=items). However we don’t know how to arrange it so that the presentation of those information (=trial?) depends on the response from participant (if they click on optionA then item from list A is presented, if they click on optionB then item from list B and so on). Thanks in advance for your help!

By Dave - 4/16/2014

You'll want to use /branch attributes to do this:

<block myblock>
/ trials = [1=selectoption]
</block>

<trial selectoption>
/ stimulusframes = [1=optionA, optionB]
/ validresponse = (optionA, optionB)
/ inputdevice = mouse
/ branch = [if (trial.selectoption.response=="optionA") trial.infoA]
/ branch = [if (trial.selectoption.response=="optionB") trial.infoB]
</trial>

<trial infoA>
/ stimulusframes = [1=infoAtxt, onemore, nothanks]
/ validresponse = (onemore, nothanks)
/ inputdevice = mouse
/ branch = [if (trial.infoa.response=="onemore") trial.infoA]
/ branch = [if (trial.infoa.response=="nothanks") trial.selectoption]
</trial>

<trial infoB>
/ stimulusframes = [1=infoBtxt, onemore, nothanks]
/ validresponse = (onemore, nothanks)
/ inputdevice = mouse
/ branch = [if (trial.infob.response=="onemore") trial.infoB]
/ branch = [if (trial.infob.response=="nothanks") trial.selectoption]
</trial>

<text optionA>
/ items = ("Gimme info about A!")
/ position = (40%, 50%)
</text>

<text optionB>
/ items = ("Gimme info about B!")
/ position = (60%, 50%)
</text>

<text infoAtxt>
/ items = ("A1", "A2", "A3", "A4")
</text>

<text infoBtxt>
/ items = ("B1", "B2", "B3", "B4")
</text>

<text onemore>
/ items = ("MOAR, PLZ!")
/ position = (40%, 75%)
</text>

<text nothanks>
/ items = ("KTHXBAI!")
/ position = (60%, 75%)
</text>
By kasia.j - 4/21/2014

Great! Thanks for help :) We'll try to do it this way.