11 Sep
2006
11 Sep
'06
9:57 a.m.
On Mon, 11 Sep 2006, Aditya Mahajan wrote:
\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?
\def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}} \starttext \doifoneelse{1}{a}{b} gives a \doifoneelse{1.5}{a}{b} gives b \doifoneelse{string}{a}{b} gives b \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/