mk90.basic.statements

Statement ENDIF

Close the innermost structured IF.

Syntax

ENDIF

Parameters

No parameters.

Behavior

Required even if the IF has no ELSE. Mismatched or missing closure is a compile-time syntax error.

Example

IF 1 THEN
PRINT "YES"
ENDIF

Limits and diagnostics

A standalone line.

Status-code reference.

See also

IF · ELSE · Language syntax