User Guide > Scripting > Script Statements > Return Statement
Was this helpful?
Return Statement
 
Description
Allow processing in the "main module" of an expression to return early
Syntax
Return expr
OR
... Return
Remarks
Return alone works exactly as if the end of the expression is reached; any value left on the stack will end up being the return value. If a value is placed in the expr argument, then that value is explicitly specified to be returned.
Example
The following causes the expression to terminate with the value 25 as the Return value:
...
25
Return
The following causes the expression to terminate with the value 37 as the Return value:
...
Return 37
Last modified date: 06/13/2022