[pmwiki-users] if exists conditional markup problem

Criss Ittermann crisses at kinhost.org
Thu Apr 2 15:01:41 CDT 2015


Thank you. -- I tried that, and I tried double quotes as well as single quotes.  

With help, I found and documented the solution on the PTV talk page.

> On Apr 2, 2015, at 1:49 AM, Dominique Faure <dominique.faure at gmail.com> wrote:
> 
> Hi,
> 
> This comes simply because the space between ftime and "%Y%m" is seen
> as a separator when evaluation the condition.
> You should try enclosing your expression with quotes:
> 
> (:if exists ’Profile-Data.{Members/Hosts$:{(ftime "%Y%m")}}’ :)
> 
> -D-
> 
> 
> On Wed, Apr 1, 2015 at 1:07 PM, Criss Ittermann <crisses at kinhost.org> wrote:
>> I'm trying to figure out why this is returning false ("To be announced."):
>> 
>> (:if exists Profile-Data.{Members/Hosts$:{(ftime "%Y%m")}} :)
>> ...
>> (:else:)
>> To be announced.
>> (:ifend:)
>> 
>> 
>> When the following returns a fully functioning link to the correct page,
>> which exists:
>> 
>> [[Profile-Data.{Members/Hosts$:{(ftime "%Y%m")}}]]
>> 
>> 
>> What am I doing wrong?
>> 
>> Crisses
>> 
>> 
>> 
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>> 
> 
> 
> 
> -- 
> Dominique




More information about the pmwiki-users mailing list