n8n If node explained: branch your workflow with a real example
Описание и применение
В n8n условный узел IF позволяет разделять поток данных на два пути: при условии "если сумма заказа больше 100", отправлять уведомление в Slack, иначе отправлять заказ в API выполнения.
Задача
Determine which downstream action to take based on a numeric condition in an incoming order JSON.
Результат
Orders over $100 are routed to Slack for review, while smaller orders bypass Slack and go straight to fulfillment, improving efficiency and reducing noise.
Рабочий процесс
- Receive order via Webhook node
- Add IF node with condition: $json.total is greater than 100
- Connect true output to Slack node to post "Order for $120 needs review"
- Connect false output to HTTP Request node to send order to fulfillment
Доказательства
Real example: order triage. You have a Webhook node receiving orders as JSON. Each order has a total. Orders over $100 should alert your team in Slack; smaller orders go straight to your fulfillment API.
Only one branch runs. n8n evaluates the condition and follows one path.
- Дата записи: 2026-10-20T16:41:04.282Z