up Inquisit Language Reference

batch element

The batch element allows a group of Inquisit scripts to be run in sequence.

Syntax

<batch>
/ directory = "location"
/ file = "path"
/ groupassignment = assignment
/ onscriptbegin = value
/ onscriptend = value
/ subjects = (integer, integer, integer, ... of modulus)
</batch>

Properties

batch.currentgroupnumber
batch.currentscript
batch.directory
batch.file
batch.groupcount
batch.name
batch.typename

Functions

None.

Remarks

The batch element should be defined in a separate script file. The batch element may not include own script file in its list of files.

Examples

The following batch runs three scripts files in sequence. The files are located in the same directory as the batch file.

<batch>
/ file="script1.iqx"
/ file="script2.iqx"
/ file="script3.iqx"
</batch>

The following batch runs three scripts files in sequence subjects with odd numbered group ids. The files are located in the same directory as the batch file.

<batch>
/ subjects=(1 of 2)
/ groupassignment = group
/ file="script1.iqx"
/ file="script2.iqx"
/ file="script3.iqx"
</batch>

The following batch runs three scripts files in the reverse order of the previous example for subjects with even numbered group ids. The files are located in the same directory as the batch file.

<batch>
/ subjects=(2 of 2)
/ groupassignment = group
/ file="script3.iqx"
/ file="script2.iqx"
/ file="script1.iqx"
</batch>

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