Table of Contents

ugBASIC User Manual

defining labels ✓

SYNTAX

   number instruction
   label: instruction
   [label:] instruction

PURPOSE

In ugBASIC it is possible to indicate the position within a program with the use of so-called “labels”. The labels can be represented in the BASIC standard, i.e. with numeric labels, or with alphanumeric labels, and are used to jump within specific positions of the program.

EXAMPLE

  100 PRINT "oK!": GOTO 100
  begin: PRINT "OK!" : GOTO begin
  [begin:] PRINT "OK!" : GOTO begin

See also the following example files:

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY