Automations

If / Else Condition Node

4 min readnode-condition

Branch the automation based on whether a field or variable matches a condition.

If / Else Condition Node

Evaluates a condition against any lead field or {{variables}} value and routes to one of two branches: True or False.

When to use it
  • Only send WhatsApp if lead.phone exists.
  • Route high-score leads to an immediate GHL task, others to a nurture sequence.

---

Required fields
FieldTypeRequiredDescription
fieldstringYesDot-notation path: lead.email, variables.score, etc.
operatorenumYesequals, not_equals, contains, not_contains, gt, lt, exists, not_exists
valuestringNoThe value to compare against (not needed for exists/not_exists)

---

Optional fields

None.

---

Variables available

This node does not produce output variables, but downstream nodes receive the same variable context.

---

Operators explained
OperatorMeaning
equalsStrict equality (case-sensitive)
not_equalsNot equal
containsString contains substring
not_containsString does not contain substring
gtNumeric greater than
ltNumeric less than
existsField/variable is set and non-empty
not_existsField/variable is missing or empty

---

Step-by-step setup
  1. Add an If/Else node to the canvas.
  2. Set Field — e.g. lead.phone.
  3. Set Operator — e.g. exists.
  4. Leave Value empty (not needed for exists).
  5. Connect the True handle to your WhatsApp node and the False handle to an email fallback.

---

Example config

json { "field": "variables.score", "operator": "gt", "value": "75" }

---

Tips & gotchas
  • All comparisons are string-based unless the value looks numeric and the operator is gt/lt.
  • exists is the safest way to gate nodes that need a field — always wrap WhatsApp/SMS nodes with an exists check on the phone field.
  • You can chain multiple If/Else nodes to create multi-branch logic.