Hi !
We are looking for an expression that would start counting the participant's errors only after the first error. It would be great if you could help us code this.
Thank you for your help!
Here is a segment of our script...
...
<item b0>
/1="Blackrectangle.jpg"
</item>
<item b1>
/1="block1.001.jpg"
</item>
<item b2>
/1="block1.002.jpg"
</item>
<picture b0>
/items=b0
/position=(50,50)
/size= (100%, 100%)
/erase=false
</picture>
<picture b1>
/items= b1
/position= (50,50)
/size= (100%, 100%)
/erase=false
</picture>
<picture b2>
/items=b2
/position= (50,50)
/size= (100%, 100%)
/erase=false
</picture>
<trial b1>
/ stimulustimes = [0=b1; 500=b0]
/inputdevice=keyboard
/correctresponse=("a")
/validresponse = ("a","l")
/timeout=2200
/beginresponsetime=0
/recorddata = true
/ontrialend=[ if (trial.b1.correct) values.earnings +=1 else values.losses -=1]
</trial>
<trial b2>
/stimulustimes = [0=b2; 500=b0]
/inputdevice= keyboard
/correctresponse= ("l")
/validresponse = ("a","l")
/timeout=2100
/beginresponsetime=0
/recorddata = true
/ontrialend=[ if (trial.b2.correct) values.earnings +=1 else values.losses -=1]
</trial>
<block practice>
/trials= [1=sequence (startpractice,b1,b2)]
/ screencolor = (0, 0, 0)
/ recorddata = false
/ postinstructions = (practiceSummary)
</block>
<values >
/earnings=0
/losses=0
/earningstest=0
/lossestest=0
</values>
<page Summary>
^^ FEEDBACK
^^
^^ Total = $<%(values.earningstest+values.lossestest)%>
</page>
<expt>
/blocks=[1=practice]
</expt>