Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
restart a trial
https://forums.millisecond.com/Topic12456.aspx
By davide
-
2/24/2014
Hi everybody!
I want to insert at the end of an example trial thepossibility to press the space key to start the effective block or to press the A key to RESTART the example trial. But I don't know how...any suggestion?
By Dave
-
2/25/2014
You can do that using /branch attributes:
<expt>
/ blocks = [1=practice; 2=test]
</expt>
<block practice>
/ trials = [1-10=mytrial; 11=repeattrial]
/ branch = [if (trial.repeattrial.response == 30) block.practice]
</block>
<block test>
/ trials = [1-100=mytrial]
</block>
<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>
<trial repeattrial>
/ stimulusframes = [1=repeattext]
/ validresponse = (57, 30)
</trial>
<text mytext>
/ items = ("Press the spacebar as quickly as possible.")
</text>
<text repeattext>
/ items = ("Press A to repeat the practice block. Press the spacebar to move on.")
</text>
By davide
-
2/25/2014
thank you Dave!!!