---
title: "Personalization Builder: Examples"
slug: "personalization-builder-examples"
status: "new"
updated: 2026-08-04T08:41:55Z
published: 2026-08-04T08:41:55Z
canonical: "docs.mapp.com/personalization-builder-examples"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Personalization Builder: Examples

## Overview

This article collects worked examples of `InsertIf`/`InsertElse` conditions and content blocks for the Personalization Builder. Use them as templates for common personalization patterns. For the underlying settings, see [Personalization Builder: Structure](/v1/docs/create-a-personalization-structure-wizard) and [Personalization Builder: Condition Builder](/v1/docs/personalization-builder-condition-builder).

---

## Examples of InsertIf and Content Blocks

1. **Salutation with Capitalized Name:** This `InsertIf` block personalizes the salutation with the recipient's first and last name, capitalized.

```undefined
Dear Mr. <%${ecx:capitalizeFirstLetter(user['FirstName'])}%> <%${ecx:capitalizeFirstLetter(user['LastName'])}%>
```
2. **Loyalty Program Points Progress:** This structure provides dynamic feedback to recipients based on their loyalty program points. The output adapts depending on their progress:

```Custom
<%InsertIf expression="${user.CustomAttribute['Loyalty_Points'] < 1000}"%>
<%${1000 - user.CustomAttribute['Loyalty_Points']}%> Points to Reach Silver!
<%/InsertIf%>
```

```Custom
<%InsertIf expression="${user.CustomAttribute['Loyalty_Points'] >= 1000 && user.CustomAttribute['Loyalty_Points'] < 5000}"%>
<%${5000 - user.CustomAttribute['Loyalty_Points']}%> Points to Reach Gold!
<%/InsertIf%>
```

```Custom
<%InsertIf expression="${user.CustomAttribute['Loyalty_Points'] >= 5000 && user.CustomAttribute['Loyalty_Points'] < 10000}"%>
<%${10000 - user.CustomAttribute['Loyalty_Points']}%> Points to Reach Platinum!
<%/InsertIf%>
```

```Custom
<%InsertElse%>
Register for Our Loyalty Program to Receive Valuable Rewards!
<%/InsertElse%>
```

Please also see the following use case that leverages the personalization capabilities of Mapp Engage: [Using a Loyalty Program to Increase Revenue](/v1/docs/using-a-loyalty-program-to-increase-revenue).
3. **Capitalize First Name in Subject Line:** This personalization capitalizes the first letter of the recipient's first name, or provides a default subject if the name is unavailable:

```Custom
<%InsertIf expression="${((not empty user['FirstName']))}" id="testcapitalize"%>
<%${ecx:capitalizeFirstLetter(user['FirstName'])}, rest of subject%>
<%/InsertIf%>
<%InsertElse id="testcapitalize"%>
Subject
<%/InsertElse%>
```
