n8n LabBeginner

Count Items in an Array in n8n

Only process emails that have attachments. Count the attachments array first.

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:

{
  "attachments": ["invoice.pdf", "photo.png"]
}
$json.attachments.

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

Related labs