[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                            Turbo Pascal Statements 
                         Repeat - Repetitive Statement 

    A Repeat statement contains an expression that controls the repeated
    execution of a statement, or sequence of statements.  The expression
    must evaluate to a standard boolean value.  The statement(s) between
    the reserved words Repeat and Until are executed repeatedly until, at
    the end of a sequence, the expression evaluates to TRUE.  All of
    the statements are executed at least once because the expression is
    evaluated after the execution sequence.


                  +-----------+                 +------------+
      Repeat ----.| statement |---.  Until  ---.| expression |--.
               .  +-----------+ |               +------------+
               |                |
               +------  ;  -----+



  EXAMPLE:  Var
               x, y : Integer;

            Begin
               Repeat
                  ReadLn(x);
                  ReadLn(y);
               Until (x = y);
            End.

See Also: Boolean
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson