n8n LabBeginner
Check if a String Contains a Word in n8n
Route support emails containing 'urgent' to a priority channel.
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:
{
"subject": "This is urgent, call me"
}
$json.subject.
βοΈ Your expression is executed against test data β any correct solution passes. +10 XP
β Solution & explanation
$json.subject.includes('urgent')
Output: true
includes(value) returns true or false. It's case-sensitive, so 'Urgent' wouldn't match 'urgent'.π‘ Pro tip: Case-insensitive version: $json.subject.toLowerCase().includes('urgent').