Flow-control operators - 3 - 3.12

Data360 Analyze Server Help

Product type
Software
Portfolio
Verify
Product family
Data360
Product
Data360 Analyze
Version
3.12
Language
English
Product name
Data360 Analyze
Title
Data360 Analyze Server Help
Copyright
2023
First publish date
2016
CAUTION:
This topic relates to Data360 Analyze Script which is the language that is used in some superseded nodes. If you are looking for help configuring the Python-based nodes, please see Python scripting.

abort

Aborts execution of the node with an error message and optional level and error code.

Used in the following format, where msg must be a string, level is the error level exception, the default is level 2 (medium) and errorCode is the errorCode for the error, the default is "Data360 Analyze.Script.userAbort":

abort(msg, [level, [type]])

The return value type is null.

Examples

abort("failed horribly") abort("failed horribly", 2, "myErrorCode-1234")

sleep

Puts the node to sleep for the specified number of milliseconds.

Used in the following format, where milliseconds must be an integer or long integer:

sleep([milliseconds])

The return value type is null.

Examples

sleep(100000)

try

Attempts to evaluate expr. If an error occurs, the return will be failure-expr. If no error occurs, and success-expr is specified, it will be evaluated and returned. Otherwise, expr will be the return value.

Used in the following format, where expr must be any expression, failure-expr must be any expression and will be evaluated and returned if expr errors and success-expr must be any expression and will be evaluated and returned if expr evaluates without an error:

try(expr, failure-expr, [success-expr])

expr.try(failure-expr, [success-expr])

The return value type is any.

Examples

try("data1.brd".appendBrd("data2.brd"), abort("append brd failed"), "Append BRD completed") "data1.brd".appendBrd("data2.brd").try(abort("append brd failed"), "Append BRD completed")