Difference between revisions of "Until"
From Free Pascal wiki
Jump to navigationJump to searchm |
m |
||
Line 1: | Line 1: | ||
+ | {{until}} | ||
+ | <br> | ||
This [[Keyword|keyword]] is used in a control construct that is similar to a [[While|while]] or [[Do|do]] loop. | This [[Keyword|keyword]] is used in a control construct that is similar to a [[While|while]] or [[Do|do]] loop. | ||
Revision as of 18:51, 1 March 2013
│
Deutsch (de) │
English (en) │
français (fr) │
русский (ru) │
This keyword is used in a control construct that is similar to a while or do loop.
Syntax:
repeat <statement block> until <condition>;
<statement block>: A single pascal statement or a begin-end statement block.
<condition>: Expression that eveluates to a boolean value.
Example:
x := 1; repeat begin DoSomethingHere(x); x := x + 1; end; until x = 10;
Keywords: begin — do — else — end — for — if — repeat — then — until — while