LABEL

LABEL L

DEFINES ONE OR SEVERAL MARKS IN THE PROGRAM

  • Type: Directive
  • Parameters: n
  • Group: Reference

ACTION

The command defines one or several LABEL, that is name(s) given to program location(s).

A label can contain letters, underscore ("_") or numbers, but the first character must be a letter.

Examples of labels : A, h67y9, abcdef078

SYNTAX: LABEL L1[,Ln]

  • L1, L2, ... Ln : labels

USE

  • The statement is used to define marks in the program.
  • A label can be a location name accessed by GOTO or the beginning of a subroutine accessed by GOSUB or by an EVENT.
  • A subroutine is a group of lines having a name and which can be processed a certain number of times.

ERROR

  • If a label contains symbols other than letters, underscores ("_") or numbers.
  • If this label is already defined.

EXAMPLE

label A, h67y9, abcdef078

SEE ALSO

GOTO

GOSUB