Previous: Port, PortW, and PortD Statements To the Table of Content Next: While Statement

- 2.2.9.10 -
TMT Pascal Language Description
Pascal Language Structure
Statements

Repeat 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;



Previous: Port, PortW, and PortD Statements To the Table of Content Next: While Statement
Port, PortW, and PortD Statements Table of Content While Statement

- 2.2.9.10 -