SwitchCase
Routes to one of several branches by value.
Fields
| Field | Type | Required | What it does |
|---|---|---|---|
value | jsonata | yes | Expression producing the value to match. |
cases | array | yes | Array of { "match": "literal" }, at most 10. The order matters: the first case leaves through branch "case1", the second through "case2", and so on. |
Output
the branch name that matched, such as "case2", or "" when nothing matched
Branches
case1case2… up to case10default