Next: , Previous: attribute, Up: Reference



begin

Synopsis

     begin
       statement;
       statement;
       ...
       statement
     end;

Description

The reserved word begin opens a begin ... end statement which joins several statements to one compound statement.

Conforming to

begin is defined in ISO 7185 Pascal and supported by all known Pascal variants.

Example

     program BeginDemo;
     begin
       if True then
         WriteLn ('single statement');
       if True then
         begin                     { clamp statement1 ... }
           WriteLn ('statement1');
           WriteLn ('statement2')
         end                       { ... to statement2 }
     end.

See also

Keywords, begin end Compound Statement, end