Overview
The Condition Builder defines the rule evaluated for an InsertIf or InsertElse block. It allows users to select an attribute, define the relationship to a value, and add the resulting condition to the personalization logic.
Navigation Path
Navigate to Audience > Segmentation > Personalization.
Click Create to open the Personalization Builder.
Click the plus symbol to open the Condition Builder.

Settings
Setting | Description |
|---|---|
First input field | Expands to show all available attributes, including standard and custom attributes. Select the attribute used for evaluating the condition. |
Center drop-down menu | Defines the relationship between the attribute value and the value entered in the second field. Available relationships include:
The list adapts based on the selected attribute. |
Second input field | Specifies the value to be compared with the selected attribute. This must be an exact value. For less strict matching, use “starts with”, “ends with”, “contains”, or regular expressions. Wildcards are not supported. |
Compare two attributes | Allows selection of another attribute instead of entering a fixed value, enabling attribute-to-attribute comparison. |
Note:
With equal and not equal relationships, the value in the attribute must exactly match the value defined in the second input field. To perform a less strict search, use the relationships starts with, ends with, or contains. It is not possible to use wildcards. More detailed queries can be created with regular expressions.
Examples of InsertIf and Content Blocks
Salutation with Capitalized Name:
ThisInsertIfblock personalizes the salutation with the recipient's first and last name, capitalized.Dear Mr. <%${ecx:capitalizeFirstLetter(user['FirstName'])}%> <%${ecx:capitalizeFirstLetter(user['LastName'])}%>Loyalty Program Points Progress: This structure provides dynamic feedback to recipients based on their loyalty program points. The output adapts depending on their progress:
<%InsertIf expression="${user.CustomAttribute['Loyalty_Points'] < 1000}"%> <%${1000 - user.CustomAttribute['Loyalty_Points']}%> Points to Reach Silver! <%/InsertIf%><%InsertIf expression="${user.CustomAttribute['Loyalty_Points'] >= 1000 && user.CustomAttribute['Loyalty_Points'] < 5000}"%> <%${5000 - user.CustomAttribute['Loyalty_Points']}%> Points to Reach Gold! <%/InsertIf%><%InsertIf expression="${user.CustomAttribute['Loyalty_Points'] >= 5000 && user.CustomAttribute['Loyalty_Points'] < 10000}"%> <%${10000 - user.CustomAttribute['Loyalty_Points']}%> Points to Reach Platinum! <%/InsertIf%><%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.
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:
<%InsertIf expression="${((not empty user['FirstName']))}" id="testcapitalize"%> <%${ecx:capitalizeFirstLetter(user['FirstName'])}, rest of subject%> <%/InsertIf%> <%InsertElse id="testcapitalize"%> Subject <%/InsertElse%>