mk90.basic.statements

Statement REPEAT

Start a loop whose body executes at least once.

Syntax

REPEAT
  statements
UNTIL expression

Parameters

No parameters.

Behavior

The terminating condition is evaluated after the body. UNTIL exits when nonzero.

Example

A=0
REPEAT
A=A+1
UNTIL A=3

Limits and diagnostics

REPEAT is a standalone line. Nesting shares the 16-block compiler limit.

Status-code reference.

See also

UNTIL · WHILE · Language syntax