<div>Hello the list,</div><div><br>I&#39;m doing some tests with pagelist plus if param and I get a new question separated from other thread I opened recently.<br>There is something strange for me, I would like to be documented or explained :<br>
should : if equal VALUE1 VALUE2 give same results as : if equal VALUE2 VALUE1 ?<br>I ask this because I get surprising (at least for me) results :<br><br>(:pagelist if=&quot;equal 1993 {=$:Date}&quot; fmt=#titredate cache=0:) : works fine, 4 exact matches<br>
(:pagelist if=&quot;equal {=$:Date} 1993&quot; fmt=#titredate cache=0:) : doesn&#39;t work as expected : 4 exact matches + 5 false (all false matches are like this one : Date : 1915, 1915, 1916, 1919s., 2007)<br><br>(can be seen there : <a href="http://www.languefrancaise.net/docs/Test/Page20">http://www.languefrancaise.net/docs/Test/Page20</a>)<br>
<br>On PmWiki,<br>(:pagelist group=Cookbook if=&quot;equal Stable {=$:Status}&quot;:) (a)<br>(:pagelist group=Cookbook if=&quot;equal {=$:Status} Stable&quot;:) (b)<br><br></div><div>(can be seen there : <a href="http://www.pmwiki.org/wiki/Test/PageListIf2">http://www.pmwiki.org/wiki/Test/PageListIf2</a>)</div>
<div><br>doesn&#39;t show exactly the same results : as one can see : (b) limits result to pages including exactly Status: Stable when (a) is less strict and list also page where Status: Stable with something else<br><br>
If I don&#39;t mistake, I can&#39;t see this documented on <a href="http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup">http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup</a> ; I don&#39;t know if this a normal way of if equal param should work.<br>
<br>(I ask this question because I&#39;m having some difficulties with pagelists using if condition and this subject was a source of trouble.)</div><div><br>Thank you four your lights.</div><div><br></div><div>Gilles.<br>
<br>--<br>---------------------------------------<br>| A | de la langue française<br>| B | <a href="http://www.languefrancaise.net/">http://www.languefrancaise.net/</a><br>| C | <a href="mailto:languefrancaise@gmail.com">languefrancaise@gmail.com</a><br>
---------------------------------------<br>
</div>