Positron Compiler Documentation

GoTo

Positron16 · Revision 1.1.3.5 · PDF page 338

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.

View original PDF page 338Open page in PDFOriginal PDF page 338