Step 8
If Condition
Renamed "Is High Discount?" — branches each per-item pass: high-discount products go one way, everything else goes the other.
Configuration
| Field | Value |
|---|---|
condition | input.discountPercent > 12 |
language | JavaScript (default) |
isExpression (Raw Directive) | off (default) |
Confirms the input. binding directly
This is a live, tested screenshot — and it settles a question that came up while planning this guide: is the current record accessed via
input., json., or item. inside an If Condition? The node's own helper text answers it: input.{key}. There is no json variable in this context, and no items[0]. wrapping either — each Loop iteration sets input directly from that item's data.
Also note the field name: it's discountPercent (renamed by Data Mapping earlier in the pipeline), not discountPercentage (the original dummyjson field name) — Data Mapping already ran before the Loop started.
Routing With Our Sample Data
| Product | discountPercent | Result |
|---|---|---|
| 1 — Essence Mascara Lash Princess | 10.48 | False → negative-feedback branch |
| 2 — Eyeshadow Palette with Mirror | 18.19 | True → Slack alert |
Port labels on the live node are True Part / False Part (not bare "True"/"False").