DO...UNTIL
From TVPaintWiki
Revision as of 12:55, 22 December 2009 by KenC (Talk | contribs) (Created page with '{{LangRefCatCrumbs}} DO (instructions) UNTIL(condition) Executes a series of instructions as long as the specified condition is true. Unlike the WHILE instruction, t…')
<<<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)