Hi everyone,
I'm making a study where participants see a series of statements about a person's sexist behavior. They either click "n" to continue on to the next statement, or if they think they've seen enough about the person to make a judgment that he's sexist, they click "s".
I want "s" to cause the statements to stop appearing and show a screen that says something about them indicating that the man is sexist and asks them to press "n" to continue to the next page (which asks them about their demographics)
However, after struggling with the branch syntax for a while I managed to get it so that after "s" is pressed, the message shows up and the statements stop, but the background stimuli is still there ("press s for stop and n for next") and the "press n to continue" doesn't show up. It's only after they press "n" that the background stimuli disappears and "press n for next" shows up. So they end up seeing the info about them indicating that the man is sexist twice and they don't know how to continue onto the demographics screen if the instructions aren't there.
Here are the relevant parts of the script:
*****************BACKGROUND STIMULI****************
<text gonext>
/ items = ("Next")
/ fontstyle = ("Arial", 14pt)
/ position = (90, 10)
</text>
<text stop>
/ items = ("Stop")
/ fontstyle = ("Arial", 14pt)
/ position = (10, 10)
</text>
<text pressn>
/ items = ("Press 'n' to continue")
/ fontstyle = ("Arial", 14pt)
/ position = (10, 10)
</text>
****************MESSAGE****************
<text stoppage>
/ fontstyle = ("Arial", 14pt)
/ position = (50, 50)
/ items = ("You have indicated that Josh is sexist.")
</text>
*****************TRIALS********************
<trial moderate>
/ validkeys = ("s", "n")
/ stimulusframes = [1= moderate]
/ branch = [if (trial.moderate.response==31) trial.stop]
/ branch = [if (trial.moderate.response==49) trial.moderate]
</trial>
<trial stop>
/ stimulusframes = [1=stoppage]
/ validkeys = ("n")
</trial>
**********************BLOCKS**********************
<block moderate>
/ bgstim = (gonext, stop)
/ trials = [1=moderate]
</block>
<block stop>
/ trials = [1=stop]
/ bgstim = (pressn)
</block>
<block demographics>
/ trials = [1=demographics]
</block>
<expt>
/ preinstructions = (intro1, intro2)
/ blocks = [1=moderate; 2=stop; 3=demographics]
</expt>
Thanks!