[texhax] \newif, \csname and \endcsname

Vafa Khalighi vafakhlgh at gmail.com
Tue Feb 1 13:56:17 CET 2011


Sorry, one more question

 \documentclass{article}

\newif\iffirst

\newif\ifsecond

\firsttrue

\newcommand{\printtest}{%

\csname iffirst\expandafter\endcsname\csname ifsecond\endcsname TT\else
TF\fi\else\csname ifsecond\endcsname FT\else FF\fi\fi

}

\begin{document}

\printtest

\end{document}


Tex again complains about an extra \fi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110201/518add4d/attachment.html>


More information about the texhax mailing list