6.8.3.6 Return Statement

Syntax

return expression

or

exit expression

Description

The exit and return statements return the value of expression and terminate the execution of the formula.

Example

return price * quantity

set index to 1

while index <= 5

if array [index] > 100

return "array[" :: index :: "] too big"

endif

set index to index + 1

endwhile