Handlebar Helper Function: Each

Iterates over arrays, lists, and objects, rendering a block for each element.

Availability 

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

Syntax 

1{{#each collection}}
2  {{this}}
3{{/each}}

Parameters 

ParameterTypeDescription
collectionArray or ObjectRequired. The array, list, or object to iterate over.

Return Value 

The function renders the block template for each element in the collection. Within the block, {{this}} refers to the current element. The helper provides standard Handlebars loop variables such as @index, @key, @first, and @last.