GoTo statement (LotusScript® Language)

Transfers control within a procedure to a labeled statement.

Syntax

GoTo label

Elements

label

A label of a statement to which you want to transfer control.

Usage

You can't use the GoTo statement at the module level; you can only use it in a procedure. You can't use GoTo to transfer control into or out of a procedure or a With...End With block.

Use the GoTo statement to transfer control to any labeled statement that does not violate either of the preceding rules.

Example