Inquisit Language Reference
The stop command specifies the conditions in which an expt or block should be terminated.
|expression||Specifies the expression to evaluate to determine whether the expt or block should stop.|
The stop command enables a script to conditionally end an expt or block based on whether a logical expression is true. The expression can evaluate the subject's performance, the current state of the experiment, the elapsed time, and other variables as well. You may specify multiple expressions separated by semi-colons, or contained in separate stop commands. The stop conditions are evaluated after each trial is complete. If any single condition is true, the expt or block ends. Otherwise, the expt or block continues.
The following block is interrupted if the subject gives 5 incorrect answers in a row, or if mean response latency on testtrials drifts above 1000 milliseconds:
/ trials=[1-20=noreplace(testtrials, distractortrials)]
/ stop=[block.myblock.errorstreak >= 5; trial.testtrials.percentcorrect >= 1000]