WHILE

From ASCEND
Jump to: navigation, 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