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.
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.