[texhax] what is wrong with \ifthenelse?

Brandon Kuczenski brandon at 301south.net
Sun Aug 9 07:55:41 CEST 2009


Hi everyone,

Thanks for your enduring patience with me and others..  I do not 
understand, what is wrong with the following minimal example which uses 
the ifthen package?  I get the error:
! Missing = inserted for \ifnum.



\documentclass[letterpaper]{article}
\usepackage{ifthen}

\newcommand{\whichisgreater}[2]{%
   \ifthenelse{#1 < #2}{%
     Two!
     #2
   }{%
     One!
     #1
   }
}

\begin{document}
\whichisgreater{0.3}{0.5}

\end{document}


Thanks in advance,
Brandon



More information about the texhax mailing list