Skip to main content
Runs one set of transformers only when the conditions you define are met, and optionally a different set when they are not. This brings decision-making into your data flow, so you can react to what each entity actually contains. For example, you might mark an order as ready to ship when it is paid, and leave it unmarked when it is not. The branches are checked in order from top to bottom: the first one whose conditions match runs, and once a branch runs, the rest are skipped.

Fields

Sample data

This example marks an order as ready to ship when it is paid, and leaves it not ready when it is not.
FieldValue
If all conditions are metorder.status equals paid
Then apply transformersSet ready_to_ship to true
Else apply transformersSet ready_to_ship to false
Input:
[
    { "order": { "id": 1001, "status": "paid" } },
    { "order": { "id": 1002, "status": "pending" } }
]
Output:
[
    { "order": { "id": 1001, "status": "paid" }, "ready_to_ship": true },
    { "order": { "id": 1002, "status": "pending" }, "ready_to_ship": false }
]
The first order is paid, so the “then” branch runs and sets ready_to_ship to true. The second order is pending, so the conditions fail and the “else” branch sets ready_to_ship to false.