I have created a PITS
http://www.pmwiki.org/wiki/PITS/01152<http://www.pmwiki.org/wiki/PITS/01152?action=edit>


See also PITS
http://www.pmwiki.org/wiki/PITS/01136

2009/11/14 DaveG <[email protected]>

>
> 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
>



-- 
____
http://kiwiwiki.co.nz
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to