Test /
IfElseIf
(:if alpha:) alpha true (:elseif beta:) alpha false, beta true (:elseif gamma:) alpha false, beta false, gamma true (:else:) alpha, beta, gamma all false (:if:) |
alpha true |
This page sets conditions for 'alpha', 'beta', 'gamma', 'delta', and 'epsilon' based upon the corresponding arguments in the url. Try the links below and see how the output of the (:if:)/(:elseif:) conditions changes above.
- Test.IfElseIf?alpha=1
- Test.IfElseIf?beta=1
- Test.IfElseIf?gamma=1
- Test.IfElseIf?alpha=1&gamma=1
- Test.IfElseIf?beta=1&gamma=1
Sandbox
(:if foo:)
foo
(:if ! foo:)
! foo
(:if !:)
!
(:if :)
null
(:if:)
(:if alpha:)
alpha
(:if ! alpha:)
! alpha
(:if !:)
!
(:if :)
null
(:if:)
|
foo
! foo
!
null
alpha
!
null
|
Feel free to experiment with the (:else:) markup here.