Format of IF-ENDIF construction is:
\IF(<boolean value>)\
.............................................
\ELSEIF(<boolean value>)\
.............................................
\ELSEIF(<boolean value>)\
.............................................
\ELSE\
.............................................
\ENDIF\