---
schema_version: "1"
id: 0df57213117ee3dca4432aeace67a9f8e041245e89a1edacdb81baf5409359b9
title: "Handlebars Helper Function: unless"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/handlebars/reference/comparison/mcn-handlebars-reference-comparison-unless.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-comparison-references/mcn-handlebars-reference-comparison-unless.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2c008df5cd616602bc94f7fb8ed61cac223ae369adc8f21228f5d677d282a0a7
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars Helper Function: unless

Conditionally renders a block based on whether a value evaluates to `false`. This behavior is the inverse of the [if](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-comparison-references/mcn-handlebars-reference-comparison-if.md) helper.

This built-in helper is provided by the Handlebars.Net library.

## Availability

This helper is available in the Winter ’26 release of Marketing Cloud Next.

## Syntax

```handlebars
{{#unless condition}}
  <!-- Content when condition evaluates to false -->
{{else}}
  <!-- Content when condition evaluates to true -->
{{/unless}}
```

## Parameters

| Parameter   | Type | Description                      |
| ----------- | ---- | -------------------------------- |
| `condition` | Any  | Required. The value to evaluate. |

## Return Value

The function renders the block template if the condition evaluates to `false`. If an `{{else}}` block is provided, it renders that block when the condition evaluates to `true`.

## See Also

- _Github_: [Handlebars.Net](https://github.com/Handlebars-Net/Handlebars.Net)
- _Handlebars Language Guide_: [Built-in Helpers](https://handlebarsjs.com/guide/builtin-helpers.html#unless)
