Handlebars or
Handlebars or: returns true when at least one operand is truthy.
Next
Runtime verified
Test scripts included
Returns true when at least one operand is truthy.
Syntax
{{or 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:
{{or false 0 "x"}}renderstrue, as documented.{{or false ""}}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.