n8n LabIntermediate

Use JavaScript Ternary Operator in n8n Expressions

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

Live Execution Simulator Idle
πŸ“₯
Incoming Data
βš™οΈ
n8n Node
🎯
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.

Incoming Payload / Data:

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

βš™οΈ Your expression is executed against test data β€” any correct solution passes. +20 XP

Related labs