Repeat
From Free Pascal wiki
Revision as of 23:19, 20 November 2020 by Kai Burghardt (talk | contribs) (Undo revision 140565 by Rfc1394 (talk): ensure reserved words a set in boldface)
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
This reserved word is used in a control construct that is similar to a while
do
loop.
Syntax
repeat
<statement block>
until <condition>;
- <statement block>: A single Pascal statement or a
begin
-end
statement block. - <condition>: Expression that evaluates to a
boolean
value.
Example
x := 1;
repeat
DoSomethingHere(x);
x := x + 1;
until x = 10;
Keywords: begin — do — else — end — for — if — repeat — then — until — while