up Inquisit Language Reference

currentScript property

The file name of the currently running script.

Member of

<batch>

Syntax

batch.name.currentScript

Read Only

Type

string

Remarks

This property returns the file name of the currently running script.

Examples

The following batch code shows how to use the 'currentScript' property in a conditional statement to set a batch parameter.

<batch main>
/ file = "script1.iqx"
/ file = "script2.iqx"
/ onScriptBegin = {if(batch.main.currentScript == "script1.iqx") parameters.maxtrials = 10;}
</batch>

Copyright Millisecond Software, LLC. All rights reserved.