The number of consecutive correct responses for the specified element within the current block.
<block> <expt> <likert> <openended> <sliderTrial> <survey> <surveyPage> <trial>
event.name.correctStreak
Read Only
integer
This property can be used to define branches that apply when the participant makes a given number of consecutive correct responses.
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>