Condition list
Evaluate the condition of each children, the first one that evaluated to true will be rendered.
Name | Description |
---|---|
component | condition-list |
children | List of switch children tile, children must have condition statement |
Example
Below, assumed values.gender
is f
. It will render "Female".
{
"component": "condition-list",
"children": [
{
"component": "text",
"text": "Female",
"condition": {
"rule": "values.gender is 'f'"
}
},
{
"component": "text",
"text": "Male",
"condition": {
"rule": "values.gender is 'm'"
}
}
]
}