Previous Up Next

25.3.4  Repeat loop

The repeat-loop allows you to repeat statements until a given condition is met. To use it, enter repeat, the statements, the keyword until followed by the condition, a boolean:

repeat statements until bool

Example

If you want the user to enter a value for a variable x which is greater than 4, you could use:

repeat input("Enter a value for x (greater than 4)",x); until (x>4);

which could also be written as

repeter input("Enter a value for x (greater than 4)",x); jusqua (x>4);

Previous Up Next