<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">Philip Taylor wrote:<br>
</div>
<blockquote type="cite"
cite="mid:2562bca4-75e2-7a7a-477b-082ada1f2427@Rhul.Ac.Uk">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
It is not a feature of PdfTeX, Igor, nor is it related to whether
or not DVI/PDF output is selected -- exactly the same behaviour is
manifested by the following, independent of engine, etc.<br>
<br>
<tt> </tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\iffalse</tt></p>
<tt> </tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>
\def \a #1#2{\myif #1\else #2\fi}</tt></p>
<tt> </tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\fi</tt></p>
<tt> </tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\end</tt></p>
</blockquote>
I suppose I should have added :<br>
<br>
your "\else" and "\fi" associate themselves with the initial
"\iffalse" rather than with your "\myif" as presumably intended.
The behaviour would be very different were you to follow Knuth's
guidance and use not "\myif" but a real \if declared with \newif :<br>
<br>
<blockquote type="cite"><tt>\newif \ifmy</tt>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\iffalse</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>
\def \a #1#2{\ifmy #1\else #2\fi}</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\fi</tt></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>\end</tt></p>
</blockquote>
<br>
</body>
</html>