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