Object Pascal - statements

Statements are important elements for writing programs. Generally one statement line corresponds to one line program. The main group of the statements are: cycles, program branching and flow control.

Examples - Object Pascal

Object Pascal
 i := x * 5;
 while i>0 do
   if i=10 then
     break
   else 
   begin
     dec(i)
   end;

Other pieces of example codes:
Object Pascal
if x>$abc then
  y := x / $a;    // y = 466
if i=3 then
    break;
while i<20 do
begin
 i:= i+2;
 if i=16 then
 begin
    continue
 end;
 inc(x); 
end;
while y>1 do
begin
  inc(x);
  dec(y);
end;
repeat dec(i) until not i > 0;
inc(i);
Languages: en hu cz sk