HP SunSoft Pascal 4.0 Manual de usuario Pagina 282

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 333
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 281
1 2 ... 277 278 279 280 281 282 283 284 285 286 287 ... 332 333

Comentarios a estos manuales

Sin comentarios