Positron Compiler Documentation

GoTo

Positron8 · Revision 4.0.6.5 · PDF page 334

GoTo Label

Jump to a defined label and continue execution from there.

Label is a user-defined label placed at the beginning of a line which must have a colon ':' directly after it.

  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.

View original PDF page 334Open page in PDFOriginal PDF page 334