Index of Handlebars Functions
We organized the functions in this reference guide into categories based on the types of data that each function interacts with. For example, you can find information about Handlebars functions that manipulate dates and times in the Date & Time Functions category.
This table lists all of the existing Handlebars functions on a single page in alphabetical order. The purpose of this index is to make it easier to explore and discover Handlebars functions that you might not have encountered otherwise.
| Function Name | Description | Category |
|---|---|---|
| Add | Returns the sum of two numbers. | Math |
| And | Returns true if both operands are true. | Comparison |
| Char | Returns a character when passed an ASCII character code. | String |
| Compare | Compares two values using a specified operator. | Comparison |
| Concat | Concatenates strings of text. | String |
| Divide | Returns the result of dividing the first parameter by the second parameter. | Math |
| Each | Loops through a list of items and renders a block of template code for each item. | Objects |
| Equals | Compares two values for equality. | Comparison |
| Fallback | Returns a fallback value if the first argument is null, empty, or if an exception occurs. | Utility |
| Filter | Returns a list of items that match a condition. | Objects |
| Flatten | Flattens a nested list into a single list. | Objects |
| Format | Formats output based on a format string and optional type specification. | Utility |
| FormatCurrency | Formats a number as a currency value. | Utility |
| FormatNumber | Formats a number as a numeric type. | Utility |
| Get | Returns the value of a property from an object. | Objects |
| If | Conditionally renders a block based on whether a value evaluates to true. | Comparison |
| IIf | Evaluates an expression and returns one of two values based on whether the expression is true or false. | Comparison |
| IndexOf | Returns the position at which a substring occurs within a string. | String |
| IsEmpty | Checks if a specified parameter evaluates to null or empty. | Comparison |
| IsNull | Checks if the given expression is null. | Comparison |
| Length | Returns the length of a string or the number of elements in an array. | Utility |
| Lowercase | Returns the provided string using only lowercase letters. | String |
| Map | Extracts a specific field from each object in a list. | Objects |
| Modulo | Returns the remainder after dividing the first parameter by the second parameter. | Math |
| Multiply | Returns the product of two numbers. | Math |
| Not | Returns true if the operand is false. | Comparison |
| Now | Returns the current system timestamp. | Date & Time |
| Or | Returns true if at least one operand is true. | Comparison |
| PersonalizationResult | Retrieves personalized content or data based on subscriber information and campaign context. | Personalization |
| ProperCase | Returns specified string with the first letter of each word capitalized. | String |
| Random | Returns a random number within a specified range. | Math |
| Repeat | Repeats a block of template code a specified number of times, providing loop context variables for each iteration. | Utility |
| Replace | Replaces every occurrence of one substring with a different substring. | String |
| Set | Performs local variable assignment within its block scope. | Utility |
| Slice | Returns a portion of a list between two specified indices. | Objects |
| Sort | Sorts a list of objects by a specified field. | Utility |
| Substring | Returns a portion of a string, beginning at a specified character position. | String |
| Subtract | Returns the result of subtracting the second parameter from the first parameter. | Math |
| Trim | Removes white space from the beginning and end of a string. | String |
| Unless | Conditionally renders a block based on whether a value evaluates to false. | Comparison |
| Uppercase | Returns the provided string using only uppercase letters. | String |
| With | Changes the context within a block to a specified object so that you can access properties without repeating the object name. | Utility |