<div dir="ltr">Thanks for all the replies<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
</div>Or with one \expandafter only:<br>
<br>
\newcommand{\printtest}{%<br>
\csname ifok\expandafter\endcsname<br>
<div class="im"> \csname ifnotok\endcsname<br>
print test%<br>
\fi<br>
\fi<br>
}<br>
<br>
</div>The first \csname is not the problem, but the<br>
second hides an internal conditional (\ifnotok),<br>
that is unhided by \expandafter.<br>
<br>
</blockquote><div><br>Thanks. What about when you have three conditional? <br></div></div><br></div>