[pmwiki-users] (:if !equal (:pagelist ... fmt=count:) 0:) does not work

Peter Bowers pbowers at pobox.com
Wed Aug 15 01:48:16 CDT 2012

On Tue, Aug 14, 2012 at 4:07 PM, Alex Eftimiades
<alexeftimiades at gmail.com> wrote:
> There seems to be something about the regex in the if markup that limits the
> if statement to text that does not contain a ":)". The same seems to go for
> page text variables (with the exception of ROSPatterns.)

If you access your wiki with ?action=ruleset you will see the list of
rules which provide the operational functionality of pmwiki.  They
operate strictly in order, top to bottom (with the possibility of
starting again at the top periodically).  You will note that the if
rule fires in advance of the pagelist rule.  Therefore if is trying to
compare (:pagelist ...:) to 0 but without yet having processed

Tamara is right that you could use the pagelist markup expression from
powertools in this case because the markup expression rule ("{(")
fires before the if rule.


More information about the pmwiki-users mailing list