[texhax] \newif, \csname and \endcsname
Vafa Khalighi
vafakhlgh at gmail.com
Mon Jan 31 13:05:48 CET 2011
Thanks for all the replies
> Or with one \expandafter only:
>
> \newcommand{\printtest}{%
> \csname ifok\expandafter\endcsname
> \csname ifnotok\endcsname
> print test%
> \fi
> \fi
> }
>
> The first \csname is not the problem, but the
> second hides an internal conditional (\ifnotok),
> that is unhided by \expandafter.
>
>
Thanks. What about when you have three conditional?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110131/349ca846/attachment.html>
More information about the texhax
mailing list