$ELSE without $IFDEF is not allowed

The compiler directive $ELSE may only appear after the $IFDEF directive, but before the corresponding $ENDIF directive. Here is an example of how these directives might be used correctly:

$define Test
$ifdef Test
  title = "My Formula (test version)"
$else
  title = "My Formula"
$endif

See Also
Errors