Handlebar Helper Function: Or
Performs a logical OR operation between multiple values. Returns true if at least one operand is truthy, false if all are falsy.
| Parameter | Type | Description |
|---|---|---|
value1 | any | The first operand for the OR operation. |
value2 | any | The second operand for the OR operation. |
value3, value4, ... | any | Additional operands to evaluate. |
The function returns true if at least one parameter is truthy, and false if all are falsy. If no parameters are provided, it returns false. If one parameter is provided, it returns its truthiness value. This function returns boolean values only (true or false). For fallback value selection (returning the first truthy value), use conditional logic with {{iif}} helper instead.
Truthiness evaluation follows these rules: null is false; boolean values are returned as-is; 0 is false, any non-zero number is true; empty string "" is false, any non-empty string is true; empty arrays [] and empty objects {} are false, non-empty are true; other values are treated as false.