[pmwiki-users] Conditional markup - page action as condition, nesting of IF markup

Patrick R. Michaud pmichaud at pobox.com
Thu May 25 11:04:17 CDT 2006


On Thu, May 25, 2006 at 11:44:54AM -0400, Curtis, Clayton wrote:
> 
>    b. As far as I can tell, the documentation is silent on how multiline and
>    nested IF statements work, as well as the role of (:ifend:) vs closing
>    (:if...:) with (:if:).  Did I miss something other than the documentation
>    page on Conditional Markup?  

First, from http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup:

    Any (:if:) automatically terminates the previous one, thus 
    markup can be easily cased (and are not nested):

        (:if enabled AuthPw:)* You're logged in
        (:if auth read:)* You can read
        (:if auth edit:)* You can edit
        (:if auth upload:)* You can upload
        (:ifend:) 

As a general rule, markups in PmWiki are not nesting markups.  
Thus, just as a (:table:) directive closes any previously active 
table, an (:if:) directive closes any previously active (:if:).

Pm




More information about the pmwiki-users mailing list