Conditions


Error in nested conditon? conditions can easily be nested with different ifx like (:if2...) (:if2end)

(:if3 false:)
(:if !authid:)
*not logged in
(:if2 authgroup id:pogay:)
*admin
(:if2end:)
*not logged in
(:else:)
else case
(:ifend:)
(:else3:)
Test nearly hidden
(:if3end:)

Test nearly hidden

What we know:
(:if auth edit:)
* You can edit
(:if auth admin:)
* You're admin!
(:if ! action edit :)
* You're not editing
(:if expr auth admin || auth edit :)
* You're an editor or admin
(:if expr ! action edit && ( auth admin || auth edit ) :)
* You're allowed to edit.
(:if ( auth admin || auth edit && ! action edit ) :)
* You're also allowed to edit.
(:if:)

What we know:

  • You can edit
  • You're not editing
  • You're an editor or admin
What's more:
(:if expr !action edit && ( auth admin || auth edit ) :)
* You're allowed to edit.
(:if ( auth admin || auth edit && !action edit ) :)
* You're also allowed to edit.
(:if:)

What's more:

  • You're allowed to edit.
  • You're also allowed to edit.
 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.06 00.02 MarkupToHTML begin
 3: 00.06 00.02 MarkupToHTML begin
 4: 00.07 00.03 MarkupToHTML end
 5: 00.07 00.03 MarkupToHTML begin
 6: 00.08 00.03 MarkupToHTML end
 7: 00.08 00.03 MarkupToHTML begin
 8: 00.08 00.04 MarkupToHTML end
 9: 00.09 00.04 MarkupToHTML end
10: 00.10 00.04 MarkupToHTML begin
11: 00.12 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.12 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.14 00.06 MarkupToHTML end
14: 00.14 00.06 MarkupToHTML begin
15: 00.14 00.06 MarkupToHTML end
16: 00.15 00.06 now
Peak memory: 3,126,152 bytes