← All native models

Model fields

workflow.config:switch

Switch Node Config

Switch node selects one output branch from alternatives using workflow-expression predicates

object
casesRequired

The cases to test, in order; the first that matches wins.

array
Minimum items
2
List items
object
expressionRequired

The condition for this case, for example input.value > 10.

string
nameRequired

The branch to take; it must match an edge's when label.

string
defaultOptional

Branch to take when no case matches. It must match an edge's when label.

string