Handlebars isEmpty
Handlebars isEmpty: returns true when a value is null, undefined, or an empty string.
Next
Runtime verified
Test scripts included
Returns true when a value is null, undefined, or an empty string.
Syntax
{{isEmpty input}}
Returns boolean.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input |
any | Yes | Value to test for null or empty. |
Example
Tested in a Marketing Cloud Next email on 2026-11-22:
{{isEmpty ""}}renderstrue, as documented.{{isEmpty 0}}rendersfalse, as documented.
Show Next test script
Marketing Cloud Next
Works as documented
Every tested call rendered the documented result. Tested 2026-11-22 by rendering in a Marketing Cloud Next email.
See also
- AMPscript
Empty— the AMPscript equivalent - AMPscript
IsNull— does a similar job in AMPscript, with a different call shape - Official reference