run through a procedure again if a condition is not met
proc() statements; condition: x; end;
a boolean expression
During execution of a procedure, if a condition statement is reached and the defined condition, x is not met, then execution of the entire procedure is restarted.
A condition statement can be added as a top-level line inside any procedure. By "top-level" we mean that it cannot occur inside of any compound statement like a loop or if statement.
p := proc() local a := rand(-1..1)(); condition: a <> 0; a; end:
The condition command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)