LOTUSSCRIPT LANGUAGE
Terminates execution of the current block statement.
Syntax
Exit blockType
Elements
blockType
Do For ForAll Function Sub Property
When LotusScript encounters this statement, it returns control to the scope containing the block statement for which execution is to be terminated.
An Exit statement of a particular type is legal only within an enclosing block statement. LotusScript returns control from the innermost block statement or procedure of that type.
However, the innermost block statement containing the Exit statement need not be of that type. For example, a function definition can include a For...Next block statement, and an Exit Function statement can appear within this statement. If LotusScript encounters the Exit Function statement during execution, control is returned immediately from the function, in which case the For...Next block statement is not executed to completion.
The following table shows the rules for transfer of control after the Exit statement.
Language cross-reference
@Return function in formula language
Example See Also