5.2.3 #ELSE

Syntax:

#ELSE

#ELSE can be specified after a #IFDEF or #IFNDEF directive as an alternative. Lines following #ELSE are read only if the preceding #IFDEF or #IFNDEF was not accepted.

They are skipped until the keyword #ENDIF is encountered, after which normal processing is resumed.

Example :

#IFDEF VER2_2_2  
-Fu/usr/lib/fpc/2.2.2/linuxunits  
#ELSE  
-Fu/usr/lib/fpc/2.2.0/linuxunits  
#ENDIF

In the above example, /usr/lib/fpc/2.2.2/linuxunits will be added to the path if you’re compiling with version 2.2.2 of the compiler, otherwise /usr/lib/fpc/2.2.0/linuxunits will be added to the path.