---
schema_version: "1"
id: 483f7cd645a302747a86a09a2627ad148177afc1824c3344cb8498c8ba5f5718
title: "Handlebars Helper Function: isNullDefault"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/handlebars/reference/utility/mcn-handlebars-reference-utility-isnulldefault.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-utility-references/mcn-handlebars-reference-utility-isnulldefault.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5922544cdfb487654abe722a7f78db07f94036bd48db5c81c5af7737b409f140
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars Helper Function: isNullDefault

Returns a default value when the first value is null.

## Availability

This helper is available in the Winter ’27 release of Marketing Cloud Next.

## Syntax

```handlebars
{{isNullDefault nonNullValue nullValue}}
```

## Parameters

| Parameter      | Type | Description                                                        |
| -------------- | ---- | ------------------------------------------------------------------ |
| `nonNullValue` | Any  | Required. The value to return when it isn't null.                  |
| `nullValue`    | Any  | Required. The default value to return when `nonNullValue` is null. |

## Return Value

The function returns `nonNullValue` unless the value is null. When `nonNullValue` is null, it returns `nullValue`.

## Usage Example

This example returns a customer's membership tier, returning `Basic` if the value of `tier` is null.

```handlebars
{{isNullDefault tier "Basic"}}
```

If the `tier` variable resolves to any value, such as `"Premium"`, the function returns that value.

```
Premium
```

If `tier` is null, the function returns the fallback value.

```
Basic
```
