Handlebars and
Handlebars and: returns true only when all operands are truthy.
Next
Runtime verified
Test scripts included
Returns true only when all operands are truthy.
Syntax
{{and value1 [value2] [...valueN]}}
Returns boolean.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value1 |
any | Yes | First operand. |
value2 |
any | No | Second operand. |
valueN |
any | No, repeatable | More operands. |
Example
Tested in a Marketing Cloud Next email on 2026-11-22:
{{and true false}}rendersfalse, as documented.{{and true "x" 1}}renderstrue, 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.