1, NEXT WITHOUT FOR

Commodore Amiga

Severity: Minor

What it means

Amiga BASIC error 1.
Commodore's manual: a variable in a NEXT statement does not correspond to any previously executed, unmatched FOR variable.

Affected Models

  • Amiga computers with Amiga BASIC, written by Microsoft for Commodore

How to Fix It

  1. Pair each NEXT with its FOR, and compare the variables.

  2. Nested loops: the NEXT of the inside loop must come before the NEXT of the outside loop.

  3. Look for a GOTO that jumps into the middle of a loop.