[texhax] Macro Problem
Manoj Kummini
kummini at yahoo.com
Mon May 5 16:47:11 CEST 2003
--- Thomas Losert <tl at vmars.tuwien.ac.at> wrote:
> This line works as expected (output nothing or "false",depending
> on parameter #4):
>
> \ifx#4\empty \else false \fi
>
> This line doesn't work since it produces "false" always
> (independent
> of parameter #4):
>
> \ifx#4\empty true \else false \fi
I could not reproduce your problem. I tried the following code:
\makeatletter
\def\truefalse#1{%
\ifx#1\empty\typeout{true}\else\typeout{false}\fi}
\makeatother
\truefalse{}
\truefalse{\empty}
\truefalse{hello}
It prints `false', `true' and `false' in that order. I don't know
why it wrote `false' for \truefalse{}.
Manoj.
=====
--
Manoj Kummini
http://www.geocities.com/kummini/index.html
12 deg 58 min N, 77 deg 35 min E
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
More information about the texhax
mailing list