n8n Lab

Use JavaScript Ternary Operator in n8n Expressions

If the score is greater than 50, return 'Pass', otherwise return 'Fail'.

Incoming Payload / Data:

{
  "score": 85
}
$json.score > 50 ?
Pro Store

Ready-to-Use Make & n8n Blueprints

Stop building from scratch. Download production-ready automation templates, AI agent workflows, and JSON packs.

Explore Blueprints Store →

Looking for another topic?

Use our interactive search drawer to filter exercises by Make.com or n8n.