Flow-control operators - Latest

Data360 Analyze Server Help

Product type
Software
Portfolio
Verify
Product family
Data360
Product
Data360 Analyze
Version
Latest
Language
English
Product name
Data360 Analyze
Title
Data360 Analyze Server Help
Copyright
2024
First publish date
2016
Last updated
2024-11-28
Published on
2024-11-28T15:26:57.181000
CAUTION:
This topic relates to Data360 Analyze Script which is the language that is used in some deprecated nodes. If you are looking for help configuring the Python-based nodes, 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")