SwitchCase

Routes to one of several branches by value.

Fields

FieldTypeRequiredWhat it does
valuejsonatayesExpression producing the value to match.
casesarrayyesArray 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

  • case1
  • case2
  • … up to case10
  • default