Control Structures

include

Supported By

Syntax

include scriptName [once] [(with|without) dialog]

ScriptName yields the name or path of an XION script file.

Description

The include statement executes the statements contained in an XION script file. If the script file cannot be found, the user will be asked to locate it, unless the without dialog keyword is used. If the script file cannot be found and the user cancels or the without dialog keyword is used, nothing happens. (For a version that triggers a script error, see require.) If the once keyword is used and the script has been executed before, it will not be executed again.

In OpenXION, the locations searched for included scripts are determined by the includePaths property.

Note

The include statement as described here is specific to OpenXION.

See Also

require