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 <[email protected]>

> On Sat, Oct 31, 2009 at 1:16 AM, ABClf <[email protected]> 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 | [email protected]
---------------------------------------
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to