Accuracy of the last response for the specified element.
<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial>
event.name.error
Read Only
boolean
A value of 1 indicates incorrect, 0 indicates correct).
The following displays the value of error in a text stimulus:
<text myText>
/ items= ("error = <% trial.myTrial.error %>")
</text>
The following displays the value of error in an instruction page:
<page myPage>
error = <% trial.myTrial.error %>
</page>
The following code demonstrates how to use 'this.error' (aka trial.nogo.error) to update the false alarm count for this 'nogo' trial.
<trial nogo>
/ stimulusFrames = [1 = stopSignal]
/ validResponse = (" ", noResponse) //spacebar press and noResponse are valid response options
/ correctResponse = (noResponse) //only a noResponse is the correct response
/ timeout = 1000
/ onTrialEnd = {
values.falseAlarmCount += this.error; //'this stands in for 'trial.nogo'
}
</trial>