Sun Microsystems SunSoft Pascal 4.0 User Manual page 282

Hewlett-packard user guide printer printer
Table of Contents

Advertisement

A
258
Comments
When pc encounters a %if directive, it evaluates expression. If expression is
true, pc executes the statements in the %then part. If expression is false, pc
skips over the %then part and executes the %else, %elseif, or %endif
directive. If no such directive exists, pc proceeds to the next statement.
The expression consists of a conditional variable and the optional boolean
operators and, or, and not. You can set a conditional variable on the
command-line by using the -config option. See "–config" on page 27 for
information on this option.
Assuming one and two are conditional variables, expression can be any of the
following:
one
two
one and two
one or two
not one
not two
Example
See the example in the %else listing on page 250.
The %ifdef Directive
The %ifdef directive determines whether or not you previously defined a
conditional variable in a %var directive.
Syntax
%ifdef expression %then
.
.
%elseifdef expression %then
.
.
%endif
Pascal 4.0 User's Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SunSoft Pascal 4.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents