ELSE Directive The ELSE directive is used with the IF directive. The ELSE directive semantically parallels the FORTRAN ELSE statement. Syntax $ELSE Default None. Location The ELSE directive must be the only directive that appears on the line. The source following the $ELSE line is compiled only if the expression, which is part of an IF directive, has a value of false.