258
Pascal 4.0 User’s Guide
A
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
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......