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>


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


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]

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