User Manual
MCP Series 
Brushed DC Motor Controllers
MCP Series User Manual
186
#ELSE
#IF expression
  ..optional code..
#ELSE
  ..use this code if the other code wasnt used..
#ENDIF
..rest of program..
Example
Allows you to have two code snippets and compile one or the other depending on the result of 
the #IF, #IFDEF or #IFNDEF directive.
temp con 1
#IF temp=1
  ..optional code..
#ELSE
  ..more optional code..
#ENDIF
  ..rest of program..
Compiles “optional code” if “temp = 1” and “more optional code” if “temp” is equal to any other 
value.










