---
schema_version: "1"
id: 954c762396264ba72667e1937dc924e1bddaf967203eb63b5bbaaabea10203aa
title: "Handlebars Helper Function: each"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/handlebars/reference/objects/mcn-handlebars-reference-objects-each.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-objects-references/mcn-handlebars-reference-objects-each.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 791f7612a7432505514ba98433e29a96ff3e379bdc78a7eee2ea6bff009b30a0
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars 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.

## Syntax

```handlebars
{{#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`.
