[NTG-context] Define doifoneelse

Aditya Mahajan adityam at umich.edu
Mon Sep 11 06:45:43 CEST 2006


Hi,

  I want to define a macro, \doifoneelse, that checks if the first 
argument is 1 or not. It should work for decimals and strings also. 
So,

\doifoneelse{1}{a}{b}  gives a
\doifoneelse{1.5}{a}{b} gives b
\doifonelese{string}{a}{b} gives b

Can someone suggest how to define this?

Thanks,
Aditya



More information about the ntg-context mailing list