IF without END IF, ELSE/ELSE IF/END IF without IF, BLOCK ELSE/END IF must be the first statement on the line

Commodore Amiga

Severity: Minor

What it means

Commodore's manual lists these under errors reported before program execution begins.
A block IF has THEN at the end of its line, and needs an END IF.
BLOCK ELSE/END IF must be the first statement on the line: nothing may stand before them.

Affected Models

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

How to Fix It

  1. Match each block IF with its END IF.

  2. Put ELSE, ELSE IF and END IF at the start of a line of their own.