DO...UNTIL

From TVPaintWiki
Jump to: navigation, search

<<<George<<<George Language Reference

  DO
     (instructions)
  UNTIL(condition)

Executes a series of instructions as long as the specified condition is true. Unlike the WHILE instruction, the instructions will be executed at least once. The test on the condition is carried out after the loop instructions have been carried out the first time.

Example :

// Count up to 10
a = 0
DO
	a = a + 1
	PRINT a
UNTIL(a < 10)