Handlebars Comparison Functions

Use the Handlebars comparison functions to compare values and return a boolean value based on the result of the comparison.

This section contains information about this Handlebars function.

Function NameDescription
AndReturns true if two values are true.
CompareCompares two values using a specified operator.
EqualsCompares two values for equality.
IfConditionally renders a block based on whether a value evaluates to true.
IIfEvaluates an expression and returns one of two values based on whether the expression is true or false.
IsEmptyChecks if a value evaluates to null or empty.
IsNullChecks if a value is null.
NotReturns true if a value is false.
OrReturns true if at least one value is true.
UnlessConditionally renders a block based on whether a value evaluates to false.