Handlebar Helper Function: isempty

Checks if a specified parameter evaluates to null or empty. It returns true if the parameter is null, undefined, or an empty string, and false otherwise.

Availability 

This helper is available in the Winter ’26 release of Marketing Cloud Next (API version 65.0).

Syntax 

1{{isempty input}}

Parameters 

ParameterTypeDescription
inputAnyThe value to check for null or empty.

Return Value 

The function returns true if the specified parameter is null, undefined, or an empty string. It returns false for all other values including zero values, non-empty strings, boolean values, and non-empty objects and arrays. If the input parameter is missing, or if the parameter references a non-existent variable, it returns true.

This function is often used together with conditional helpers to handle empty values. For example, this code example checks if the firstName variable is empty and handles it accordingly.

1{{#if (isEmpty firstName)}}
2  Hello friend!
3{{else}}
4  Hello {{firstName}}!
5{{/if}}

See Also