Get(ScriptResult)

Category: Get

Syntax: Get ( ScriptResult )

Parameters: None

Data type returned: Text, Number, Date, Time, Timestamp, Container

Description:

This function allows subscripts to pass results to their calling ("parent") script. Get(ScriptResult) returns whatever value was set by the Exit Script script step.

Note that once all scripts complete execution, no value is stored and Get(ScriptResult) will return a null (or blank) value.

Examples:

Consider a subscript that checks for duplicate records within a found set and passes a count of duplicates as a script result. Any number of scripts within a given solution can then call that subscript and perform a check like so:

Case ( Get(ScriptResult) > 1; "duplicates exist"; "no duplicates" )

Категории