Go to the first, previous, next, last section, table of contents.

LOOP Statement

LOOP <stmts> END

The LOOP statement executes <stmts> repeatedly in an infinite loop. Normally an EXIT statement appears in some IF statement in <stmts> to exit the loop when some condition becomes true. The following example prints "Hello" forever.

LOOP
  IO.Put("Hello\n");
END (* LOOP *)


Go to the first, previous, next, last section, table of contents.