Conditional
Switch
A function of the expression language. Category: Conditional. switch.
Signature
Link to this section: Signatureswitch({ branches: { type: "array", data: { type: "object", data: { case: anyBooleanExpression, then: anyExpression } }[] }, default: anyExpression })Where it can be used
Link to this section: Where it can be usedIts result can be used where the editor expects a value of these types.
- list
- boolean
- number
- object
- text
More in Functions.
Arguments
branchesany valueRequired
defaultany valueRequired
Was this page helpful?