up Inquisit Language Reference

correctStreak property

The number of consecutive correct responses for the specified element within the current block.

Member of

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

Syntax

event.name.correctStreak

Read Only

Type

integer

Remarks

This property can be used to define branches that apply when the participant makes a given number of consecutive correct responses.

Examples

The following displays the value of correctStreak in a text stimulus:

<text myText>
/ items= ("correctStreak = <% trial.myTrial.correctStreak %>")
</text>

The following displays the value of correctStreak in an instruction page:

<page myPage>
correctStreak = <% trial.myTrial.correctStreak %>
</page>

The following shows how to use 'correctStreak' in a trial's branching attribute. The trial ends with 10 consecutive correct responses. In any other case, the same trial is called over and over again.

<trial choice>
/ inputDevice = mouse
/ stimulusFrames = [1 = choiceA, choiceB]
/ validResponse = (choiceA, choiceB)
/ branch = {
  if (this.correctStreak < 10){
    return this;
  } else {
    return null;
  }
}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.