Node reference
If
Branch using conditions
If chooses one of two paths. It forwards the incoming data through true when the conditions pass, or false when they do not. Use it for decisions such as whether a quantity needs attention.

For each input, If forwards the payload through true or false. These alternatives should not feed a Merge in Join branches mode, which waits for both.
Try it step by step
- Add a Variable named quantity with the numeric value 3, then connect it to If.
- Set the left value to {{quantity}}, the operator to >=, and the right value to 2.
- Connect each output to a different Variable message. Run once, then change quantity to 1 and run again.
What to expect
With quantity 3, only the true path runs. With quantity 1, only the false path runs. If forwards the original object; it does not replace it with a boolean.
Things to check
- Expressions compare their resolved values, including null and empty strings. A plain left operand such as quantity reads that input field; leaving it empty compares the whole input.
- AND means both checks must pass; OR means either can pass. Keep mixed conditions small enough to inspect.
- Join branches waits for every incoming connection, while If chooses one. Within an iteration, Collect items can gather whichever If routes run.
Keep learning
Parameters
| Setting | Default | What it does |
|---|---|---|
| Conditions | [{"left":"","operator":"==","right":""}] | Compare left and right values, then combine checks in order with AND or OR. Drag rows or use the move buttons; each row keeps its join, which is ignored in first position. |
| Node name | (empty) | Custom display name. References and connections keep their existing identifiers. |
Node name: Double-brace expressions are not resolved in this field.
Inputs
| Port | Value | Description |
|---|---|---|
in | object | Payload evaluated by the configured condition. |
Outputs
| Port | Value | Description |
|---|---|---|
true | object | Original payload routed when conditions pass. |
false | object | Original payload routed when conditions fail. |