The f$IFOPT switchg will compile the text that follows it if the switch switch is currently in the speci ed state. If it isn't in the speci ed state, then compilation continues after the corresponding f$ELSEg or f$ENDIFg 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 f$IFOPTg directive accepts only short options, i.e. f$IFOPT TYPEINFOg will not be accepted.