WHILE

From ASCEND
Revision as of 02:32, 17 November 2013 by Jpye (talk | contribs)
(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