Until

From Free Pascal wiki
Revision as of 17:40, 14 February 2018 by Mathias (talk | contribs)
Jump to navigationJump to search

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
    DoSomethingHere(x);
    x := x + 1;
  until x = 10;



Keywords: begindoelseendforifrepeatthenuntilwhile