Next: , Previous: constructor, Up: Reference



Continue

Synopsis

     Continue  { simple statement }

Description

Continue goes on with loop iteration by jumping to the end of the current loop body. Note: Continue can only stand within a while, repeat or a for loop.

Conforming to

Continue is a Borland Pascal extension, Mac Pascal has Cycle instead.

Example

     program ContinueDemo;
     var
       Foo, Bar: Integer;
     begin
       WriteLn ('Enter three numbers:');
       for Bar := 1 to 3 do
         begin
           ReadLn (Foo);
           if Foo < 5 then
             Continue;
           WriteLn ('Your number was greater than 5.')
         end
     end.

See also

Loop Control Statements, Break, Cycle, Exit, Halt, Leave, Return, goto.