After 4 hours debugging I discovered what I think is a bug if the
conditional logic. Or perhaps nested conditions work differently to how
I'd expect -- if so, how do I accomplish .
(this was tested on pmwiki.org)
This markup:
(:if equal 1 2:)111(:if equal 2 3:)222(:else:)333(:if:)444(:if:)
produces: 333444
expected: no output
odd: 444 is shown, but 111 is not
This case:
(:if equal 1 2:)111(:if equal 2
3:)222(:else:)333(:if:)444(:else:)555(:if:)
produces: 333444(:else:)555
expected: 555
odd: 444 is shown, but 111 is not
Which seems to indicate nested else conditional markup is simply
ignored, or that the 444 is throwing things off. However this also
doesn't work:
(:if equal 1 2:)111(:if equal 2
3:)222(:else:)333(:endif:)(:else:)555(:endif:)
produces: 333(:endif:)
expected: 555
~ ~ Dave
_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel