| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Continue { simple statement }
|
`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 statement.
`Continue' is a Borland Pascal extension.
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 then 5.')
end
end.
|
section 8.1.7.13 Loop Control Statements, section 9.30 Break, section 9.77 Exit, section 9.108 Halt, section 9.231 Return, section 9.106 goto.