I have created a PITS <div><a href="http://www.pmwiki.org/wiki/PITS/01152?action=edit">http://www.pmwiki.org/wiki/PITS/01152</a><br><div><br><div><br></div><div>See also PITS<br><a href="http://www.pmwiki.org/wiki/PITS/01136">http://www.pmwiki.org/wiki/PITS/01136</a><br>
<br><div class="gmail_quote">2009/11/14 DaveG <span dir="ltr">&lt;<a href="mailto:pmwiki@solidgone.com">pmwiki@solidgone.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 11/13/2009 2:10 AM, Simon wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PS My use case is<br>
(:if equal &quot;{$$File}&quot; &quot;&quot;:)Photo(:else:){(ucfirst &quot;{$$File}&quot;)}(:ifend:)<br>
</blockquote></div>
This also happens with other types of variable. I ended up creating a function to test, and calling with a conditional markup:<br>
$Conditions[&#39;bi_isnull&#39;] = &#39;bi_IsNull($condparm)==&quot;&quot;&#39;;<br>
function bi_IsNull($e){<br>
  return (!empty($e) &amp;&amp; substr($e,0,3)!=&#39;{*$&#39; &amp;&amp; substr($e,0,2)!=&#39;{$&#39; &amp;&amp; substr($e,0,3)!=&#39;{=$&#39; ?$e :&#39;&#39;);<br>
}<br>
<br>
Called with:<br>
 (:if bi_IsNull {$$File}:)Photo(:else:){(ucfirst &quot;{$$File}&quot;)}(:ifend:)<br>
<br>
<br>
 ~ ~ Dave<br>
</blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div></div></div>