GOTO

GOTO L

JUMPS TO THE PART OF PROGRAM WHICH BEGINS BY "L:"

  • Type: Command
  • Parameter: 1
  • Group: Reference

ACTION

The command makes program execution jump to the location called "L".

L is a label and must be defined by the keyword LABEL.

SYNTAX: GOTO L

  • L : label

USE

  • Thes command GOTO is used to jump to another location during the execution.

ERROR

  • If the label L does not exist.
  • If L is not a correct label name.

EXAMPLE

dim a,b

label addition

a=1:b=1

goto addition

end

addition:

print a+b

SEE ALSO

LABEL