[pmwiki-users] Bug in nested condition? with else case
sti at pooq.com
sti at pooq.com
Tue Oct 9 13:45:52 CDT 2007
Patrick Ogay wrote:
> Problem:
>
> (:if authid:)
> logged in
> (:if authgroup id:pogay:)
> admin
> (:ifend:)
> logged in
> (:else:)
> else case
> (:ifend:)
>
> The else case works correct without the inner (:if:)
> the inner if works correctly without (:else:)
>
Conditions don't nest. At all. Every (:if...:) counts as an (:ifend:) for the
previous (:if...:). You need to write:
(:if authid:)
logged in
(:if authgroup id:pogay:)
admin
(:if authid:)
logged in
(:else:)
else case
(:ifend:)
More information about the pmwiki-users
mailing list