when
A child of a choose
command. The child commands of when
are evaluated if the condition of the test
attribute resolves to a Boolean true
and none of the preceding when
commands had their children evaluated.
Parent commands
choose
Required. This must be the parent command.
Child commands
Any command can be a child of when
. There should preferably be at least one child.
Attributes
test | ||
---|---|---|
Required | Value type | EL-evaluated |
Yes | Boolean | Yes |
Defines the conditional expression. Should the resolved value be a Boolean |
Examples
See the documentation of choose for examples.