Choose an output by matching a value against an ordered list of cases.
Inputs and outputs
Inputs
| Connector | Type | Required |
|---|---|---|
Value | any | Yes |
Cases | list | Yes |
Default Value | any | No |
Outputs
| Connector | Type |
|---|---|
Result | any |
Route | text |
Matched | boolean |
Case 1 | fire |
Case 2 | fire |
Case 3 | fire |
Case 4 | fire |
Case 5 | fire |
Case 6 | fire |
Case 7 | fire |
Case 8 | fire |
Default | fire |
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.
