Compound statement


The compound statement is a sequence of statements delimited by BEGIN and END . A compound statement acts as a single statement.
NOTE - A compound statement does not define a new scope.
SYNTAX:
compound_stmt = BEGIN stmt { stmt } END ';' .
 
EXAMPLE:
A simple compound statement.
 
BEGIN
 a := a+1 ;
 IF a > 100 THEN
  a :=0;
 END_IF;
END ;