<span id="ctl00_ctl00_Content_TabContentPanel_Content_DescriptionLabel">For ipy 2.0 alpha 5, try this:<br>h = &#39;hello&#39;<br>b = &#39;bye&#39;<br>print h if h==&#39;hello&#39; else b<br>print h if h==&quot;hello&quot; else &quot;bye&quot;
<br><br>Results are:<br>&gt;&gt;&gt; h = &#39;hello&#39;<br>&gt;&gt;&gt; b = &#39;bye&#39;<br>&gt;&gt;&gt; print h if h==&#39;hello&#39; else b<br>hello<br>&gt;&gt;&gt; print h if h==&quot;hello&quot; else &quot;bye&quot;
<br>Traceback (most recent call last):<br>ValueError: Types must match<br>Parameter name: ifTrue<br><br>In Cpython 2.5 and ipy 2.0 a4 I don&#39;t have this problem.<br>Regards.</span> <br><a href="mailto:users@lists.ironpython.com">
</a>