blokboard/ Open beta

Node reference

If

Branch using conditions

CoreFlow

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.

An If node splits into true and false paths. Only one path receives each input.
A decision follows one output

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

  1. Add a Variable named quantity with the numeric value 3, then connect it to If.
  2. Set the left value to {{quantity}}, the operator to >=, and the right value to 2.
  3. 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

SettingDefaultWhat 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

PortValueDescription
inobjectPayload evaluated by the configured condition.

Outputs

PortValueDescription
trueobjectOriginal payload routed when conditions pass.
falseobjectOriginal payload routed when conditions fail.