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"><<a href="mailto:pmwiki@solidgone.com">pmwiki@solidgone.com</a>></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 "{$$File}" "":)Photo(:else:){(ucfirst "{$$File}")}(: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['bi_isnull'] = 'bi_IsNull($condparm)==""';<br>
function bi_IsNull($e){<br>
return (!empty($e) && substr($e,0,3)!='{*$' && substr($e,0,2)!='{$' && substr($e,0,3)!='{=$' ?$e :'');<br>
}<br>
<br>
Called with:<br>
(:if bi_IsNull {$$File}:)Photo(:else:){(ucfirst "{$$File}")}(: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>