[next] [prev] [prev-tail] [tail] [up]

#### $IFOPT : Start conditional compilation

The {$IFOPT switch} will compile the text that follows it if the switch switch is currently in the specified state. If it isn’t in the specified state, then compilation continues after the corresponding {$ELSE} or {$ENDIF} directive.

As an example:

     {$IFOPT M+}
       Writeln ('Compiled with type information');
     {$ENDIF}

Will compile the writeln statement if generation of type information is on.

Remark:The {$IFOPT} directive accepts only short options, i.e. {$IFOPT TYPEINFO} will not be accepted.

[next] [prev] [prev-tail] [front] [up]