up Inquisit Language Reference

quit attribute

The quit attribute specifies the conditions under which the script should terminate.

Member of

<block> <expt> <likert> <openended> <survey> <surveypage> <trial>

Syntax

/ quit = [expression; expression; expression; ...]

Parameters

expression An expression that returns boolean true or false. See help with expression syntax for more information.

Remarks

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.

Examples

The following script quits when performance rises above a threshold:

<block myblock>
/ trials=[1-100=test]
/ quit=[values.points > values.maxpoints]
</block>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.