Switch / Router

flow · C191 · starter-package 7.0.1

Choose an output by matching a value against an ordered list of cases.

Inputs and outputs

Inputs

ConnectorTypeRequired
ValueanyYes
CaseslistYes
Default ValueanyNo

Outputs

ConnectorType
Resultany
Routetext
Matchedboolean
Case 1fire
Case 2fire
Case 3fire
Case 4fire
Case 5fire
Case 6fire
Case 7fire
Case 8fire
Defaultfire

What the block does

The block computes its result directly in the installed add-on using only the connected values. No external service is required.

Errors and recovery

Missing, mistyped, non-finite, oversized, or unknown input stops the block and marks it as failed. Correct the highlighted connector or visible setting and run the workflow again.

Example workflow

Connect Text gold to value and a List containing {"match":"gold","value":"priority","route":"gold"} to cases. Wire case1 to the priority branch. It fires and result contains priority. With no match, defaultFire fires and result uses the connected default.