If Node

Branch your workflow based on a condition. Items that match go to the true branch; others go to false.

Written By pvdyck

Last updated 16 minutes ago

If Node

The If node branches your workflow into two paths based on a condition. Items matching the condition go to the "true" output; non-matching items go to "false".

Parameters

ParameterDescription
ConditionsOne or more conditions to evaluate. Each condition specifies a field, operator, and comparison value
CombineHow multiple conditions are joined: AND (all must match) or OR (any must match)

Condition Operators by Type

TypeOperators
Stringequals, not equals, contains, not contains, starts with, ends with, regex match, is empty, is not empty
Numberequals, not equals, greater than, less than, greater than or equal, less than or equal, is empty
Booleanis true, is false, is empty
Date & Timebefore, after, equals, is empty
Arraycontains, not contains, length equals, length greater than, length less than, is empty
Objectis empty, is not empty

Options

OptionDescription
Loose Type ValidationAttempts to convert values to the correct type before comparing (e.g., string "5" equals number 5)

Tips

  • Use expressions like {{ $json.status }} to reference incoming data fields
  • Chain multiple If nodes for complex multi-condition logic, or use the Switch node instead
  • The false branch is optional -- you can leave it unconnected to discard non-matching items

Limitations

  • None. Full support.

Related