Zetect Usage Guide Expressions & TransformsSwitch portal ⇄

Mapping Transforms

Turn one set of values into another: a straight value-to-value lookup, or a multi-condition decision table.

lookup

Maps the input to a value from a table. If the input is not a key, returns default.

FieldDescription
inputThe value to look up (template allowed).
mappingObject of key: value pairs. Values are templated.
defaultReturned when the input matches no key.
4

decision

A rule table. Rules are tried in order; the first rule whose when clause matches every listed attribute wins and its then is returned. If none match, default is returned.

FieldDescription
rulesOrdered list of { "when": {…}, "then": … }.
whenObject of attribute: expectedValue. All entries must match. Comparison is exact and case-sensitive.
thenValue returned when the rule matches (templated).
defaultReturned when no rule matches.
10