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.
Syntax
{{#each collection}}
{{this}}
{{/each}}
Parameters
| Parameter | Type | Description |
|---|---|---|
collection |
Array or Object | Required. 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.