up Inquisit Language Reference

error property

Accuracy of the last response for the specified element.

Member of

<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial>

Syntax

event.name.error

Read Only

Type

boolean

Remarks

A value of 1 indicates incorrect, 0 indicates correct).

Examples

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>

Copyright Millisecond Software, LLC. All rights reserved.