ez.no / exponential / documentation / reference / template operators / logic / choose
choose( value1 [, value2 [, ... ] ] )
| Name | Type | Description | Required |
|---|---|---|---|
| value1 | mixed | Value of any kind | yes |
| value2 | mixed | Value of any kind | no |
| ... | mixed | Value of any kind | no |
Returns the element specified by the input value
{0|choose("a","b","c")}
returns "a".
{2|choose("a","b","c")}
returns "c".
Comments