When preparing custom emails for your subscribers, it can be useful to display specific verbiage based on a personalization tag. In other words, if a personalization tag matches a certain condition like a person’s first name being “Jim,” you can provide a unique message. This allows you to fine-tune your custom messages and provide a much more personalized experience.
This feature is especially useful for situations like opt-in and opt-out messages.
To add conditional content, create a new campaign and go to the email design editor. Select “Insert Conditional Content” at the top of the editing screen.
This will open a window where you will supply conditions for your conditional content.
Select the specific category you wish to match, then choose the condition that needs to be matched for certain content to show (or not show). For example, here I’ve chosen to customize my message to all users with a first name of Bob. This is the code that appears in the message with the prerequisites "First Name," "Equals (Is)" Bob:
We are now free to edit the individual message that appears if a users’ first name is Jim, or if their first name is not Jim.
Notice the text that says, “Insert Content Here.” This is where you supply your message for users named Jim. The section that says, “Insert Alternative Content Here” is where your message goes for users not named Jim.
Be very careful not to modify or move the control tags. These tags include any text inside a percentage sign:
%IF $FIRSTNAME == 'Jim'%
If you modify or move these tags, your conditional content will not render properly.