Returning a Result From a Script

Scripts run by adTempus can return a result to indicate their outcome (equivalent to returning an exit code from an application).

To return a result, the script simply sets the global Result variable to the appropriate value.

The kind of value your script returns will depend on the way that the script is being used. In places where adTempus expects a result from a script, the documentation will indicate the value that should be returned. For example, a Script Condition requires that the Result be either True or False. For a Script Execution task you can return a numeric value.

 

Global Variables and Procedures