Match Expression

flow · C194 · starter-package 7.0.1

Find the first matching pattern and return its associated value and route.

Inputs and outputs

Inputs

ConnectorTypeRequired
ValueanyYes
PatternslistYes
Default ValueanyNo

Outputs

ConnectorType
Resultany
Routetext
Matchedboolean

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 invoice-created to value and a List with {"kind":"type","value":"text","result":"billing","route":"text-value"} to patterns. Read billing from result and text-value from route. Use matched to distinguish a match from the default.