up Inquisit Language Reference

abort function

Aborts the script.

Member of

<script>

Syntax

element.name.abort(abortbatch)

Parameters

Name Type Description
abortbatch boolean Optional. Whether the entire batch should be aborted.

Examples

The following aborts the script at the end of an informed consent trial:

<trial consent>
/ ontrialend= [if ( trail.consent.response == 57 ) script.abort();]
</trial>

The following aborts the script if performance dips below threshold:

<trial sometrial>
/ ontrialend= [if ( trial.sometrial.percentcorrect <= 50% ) script.abort();]
</trial>

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