WHILE

From ASCEND
Revision as of 13:54, 13 May 2010 by UploadBot (talk | contribs) (Restored page from Google Cache, uploaded by John Pye)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The WHILE statement in ASCEND can be used to perform conditional looping actions within METHODs. An example of the usage is

WHILE i > 5 DO
    x[i] := i;
    i := i - 1;
END WHILE;

A test file using this syntax is models/test/while.a4c.


See also