On 11/13/2009 2:10 AM, Simon wrote:
> PS My use case is
> (:if equal "{$$File}" "":)Photo(:else:){(ucfirst "{$$File}")}(:ifend:)
This also happens with other types of variable. I ended up creating a
function to test, and calling with a conditional markup:
$Conditions['bi_isnull'] = 'bi_IsNull($condparm)==""';
function bi_IsNull($e){
return (!empty($e) && substr($e,0,3)!='{*$' && substr($e,0,2)!='{$'
&& substr($e,0,3)!='{=$' ?$e :'');
}
Called with:
(:if bi_IsNull {$$File}:)Photo(:else:){(ucfirst "{$$File}")}(:ifend:)
~ ~ Dave
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users