The quit attribute specifies the conditions under which the script should terminate.
<block> <expt> <likert> <openended> <slidertrial> <survey> <surveypage> <trial>
expression | An expression that returns boolean true or false. See help with expression syntax for more information. |
At the end of a expt, the expression specified by the quit parameter is evaluated, and if returns a true or non-zero value, the script terminates.
The following script quits when performance rises above a threshold:
<block myblock>
/ trials=[1-100=test]
/ quit=[values.points > values.maxpoints]
</block>