NEXT

BASin

NEXT

Statement/Command

NEXT is always used in conjunction with FOR to create a FOR-NEXT loop.

How to use NEXT

NEXT is normally used to form a statement in a program to complete a FOR-NEXT loop. It is followed by a letter that is the control variable in the loop, for example

90 NEXT a

In Sinclair BASIC, the control variable must be included. See FOR for further details of FOR-NEXT loops.

Format

  • NEXT letter

See also

Chapter 4.