![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395274x1.png)
A
Example
The Pascal program, debug.p
The output when you compile debug.p without the
The output when you use
program debug_example(output);
{This program demonstrates the use of the %debug compiler directive. }
begin
writeln ('Hello, how are you?'); %debug; writeln ('Fine, thank you.');
end. { debug example }
hostname% pc
Hello, how are you?
hostname% pc
Hello, how are you?
Fine, thank you.
The %else Directive
The %else directive provides an alternative action to the %if directive.
Syntax
%if expression %then
.
.
%else
.
.
%endif
250 | Pascal 4.0 User’s Guide |