HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 282

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 281
258 Pascal 4.0 Users 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
Seitenansicht 281
1 2 ... 277 278 279 280 281 282 283 284 285 286 287 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare