GoTo
Positron8 · Revision 4.0.6.5 · PDF page 334
Syntax
GoTo Label
Overview
Jump to a defined label and continue execution from there.
Parameters
Label is a user-defined label placed at the beginning of a line which must have a colon ':' directly after it.
Example
If Var1 = 3 Then GoTo JumpOver
{
code here executed only if Var1<>3
……
……
}
JumpOver:
{continue code execution}
In this example, if Var1=3 then the program jumps over all the code below it until it reaches the label JumpOver where program execution continues as normal.
See also : Call, GoSub, Sub...EndSub, Proc...EndProc.
