Return
General Action Statement
The Return statement sends a subroutine value to the logic calling the subroutine. In the same way that parameters send information from the calling logic to the subroutine, RETURN sends information from the subroutine to the calling logic. After the RETURN statement is executed, no more subroutine logic is executed. When subroutines return values, the RETURN statement must be followed by an expression.
When used in logic that is not a subroutine, RETURN functions like a very powerful Break or BreakBlk statement. Where Break and BreakBlk exit only the innermost loop or statement block, RETURN exits the logic completely, no matter how deeply it is nested inside loops and statement blocks.
Syntax
RETURN {<expression>}
Examples
RETURN
RETURN Attr1Sqrt(Attr2)
Parameters
{<expression>}
The value to return. This expression must be on the same line as the RETURN statement. If a subroutine is activated, then the return value is ignored.