Test /
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:
|
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:
|