-
Notifications
You must be signed in to change notification settings - Fork 0
NEXT
Andrew Owen edited this page May 30, 2023
·
2 revisions
NEXT [var_0 [, var_1] ...]
Iterates a FOR
to NEXT
loop: increments the loop variable and jumps to the FOR
statement. If no variables are specified, next matches the most recent FOR
statement. Several nested NEXT
statements can be consolidated into one by using the variable list. If one or more variables are specified, their order must
match the order of earlier FOR
statements.
var_0, var_1, ...
are numeric variables which are loop counters in a FOR
statement.
- No
FOR
statement is found to match theNEXT
statement and variables: NEXT without FOR. -
var_0, var_1, ...
are string variables: NEXT without FOR. - The (implicit or explicit) loop variable is an integer variable and is taken
outside the range
[-32768, 32767]
when incremented after the final iteration: Overflow.
- Press
RETURN
to return to this menu. - Enter the name of a
TOPIC
to display it. - Enter
EXIT
to return to BASIC.
Choose from the following topics: