$IF

From Lazarus wiki
Revision as of 20:59, 2 April 2014 by Jwdietrich (talk | contribs) (Template included)
Jump to navigationJump to search

The $IF directive can be used in conditional compilation.

{$IF CompilerVersion >= 20 }
   if FHandle = INVALID_HANDLE_VALUE then
{$IFEND}    

Directives, definitions and conditionals definitions
global compiler directives • local compiler directives

Conditional Compiler Options • Conditional compilation • Macros and Conditionals • Platform defines
$IF