
PRINTLEVEL - output of assignments and expressions

Calling sequence:
PRINTLEVEL := integer

Parameter:

integer   --  non-negative integer

Summary:

PRINTLEVEL is primarily used for searching for errors.

In order to understand the PRINTLEVEL mechanism the expression output
depth must be defined.  With interactively input statements the output
depth is 1.  If a further statement block is executed in a statement then
in the statement block the output depth is increased by 1.  Thus, e.g. the
statements in the then part of an interactively entered if statement have
the output depth 2. Before the execution of a procedure the output depth is
additionally increased to the next multiple of 10.

If, during evaluation, the value of PRINTLEVEL is greater or equal to the actual
output depth then evaluated statements and expressions are output (in so
far as they are contained in a statement sequence).

With the assignment PRINTLEVEL := NIL; the variable PRINTLEVEL is set to
the default value 0. PRINTLEVEL is an environment variable.

>>  a:= 3: if a > 2 then a:= 2; a end_if;

      2

>>  PRINTLEVEL:=2: a:=3: if a > 2 then a:=2; a end_if;

      PRINTLEVEL := 2

      a := 3

      a := 2

      2

      2

