- 2.2.9.10 -
TMT Pascal Language Description
Pascal Language Structure
StatementsRepeat Statement
The repeat statement, much like the for statement,
executes one or more statements in a loop. Unlike a for statement
where the loop condition is tested prior to each iteration, a repeat
statement condition is tested after each iteration. Therefore a repeat
loop is executed at least once. repeat takes the following form:
repeat
statement [; statement]
until expression;
where the repeat loop executes until the expression evaluates
to the boolean value of True. When the expression is False, the loop
is executed again.
The following is an example of the repeat statement:
repeat
{Do nothing}
until KeyPressed;
|
|
|
Port, PortW, and PortD Statements |
Table of Content |
While Statement |
- 2.2.9.10 -