[pmwiki-users] if equal value1 value2 = if equal vale2 value1 ??

ABClf languefrancaise at gmail.com
Sat Oct 31 07:59:17 CDT 2009


Yes, I have seen your note on the test page.
I was testing this easy if-condition in pagelist, before trying more complex
ones, and didn't understand what was wrong ; all is clear now.
Thank you.

2009/10/31 Peter Bowers <pbowers at pobox.com>

> On Sat, Oct 31, 2009 at 1:16 AM, ABClf <languefrancaise at gmail.com> wrote:
> > should : if equal VALUE1 VALUE2 give same results as : if equal VALUE2
> > VALUE1 ?
>
> > On PmWiki,
> > (:pagelist group=Cookbook if="equal Stable {=$:Status}":) (a)
> > (:pagelist group=Cookbook if="equal {=$:Status} Stable":) (b)
>
> It's a spaces/quotes issue.  Apparently the "equal" condition ignores
> any subsequent arguments after the 2 that it is comparing for
> equality.  Thus:
>
> ...if="equal abc abc"
> ...if="equal abc abc def ghi"
>
> will both result in true.  "abc" is equal to "abc" and the "def" and
> "ghi" are ignored.  However,
>
> ...if="equal abc 'abc def ghi'"
>
> (using single quotes to hold 'abc def ghi' together as a single string
> for the second argument) will result in false.
>
> Note the additional example I placed on this page:
>
> http://www.pmwiki.org/wiki/Test/PageListIf2
>
> -Peter
>



-- 
---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091031/b3620b36/attachment.html 


More information about the pmwiki-users mailing list