Content: Insert Condition


Conditional content allows you to insert blocks of text or graphics into your message depending on whether certain conditions are met by a particular recipient. Using conditional content, you can easily create unique, one-to-one emails tailored to the exact needs and interests of your recipients, without having to write (or send) more than one message.


All the commands work using a simple if-then-else logic: if a particular condition is true, then insert a particular block of text; else (that is, if the condition is not true), insert a different text block. Note that by text, we mean both plain text or HTML—you may include either.


Conditional content is a feature of ListManager Pro or Enterprise, and is unavailable for standard ListManager. Contact your account representative at sales@lyris.comif you'd like to upgrade to ListManager Pro or Enterprise.



Note for those upgrading from ListManager 5.0

If you are using the ListManager Mailings menu to create mailings for your list, ListManager will automatically set Enable Scripting to Admins Only if previously disabled, and change the Scripting Level to Full. For more information about these settings, see Utilities: List Settings: For Programmers: Email Scripting.


Fields Available for Conditions

The fields available for making comparisons are drawn from your ListManager members table. You may have ListManager use fields from other tables if you specify them in Content: New Content. Advanced.


Described here are the default ListManager member fields available; consult with your database administrator about additional fields available to you.



Additional information about the recipient which you've added.



Comments about the recipient which you've added.



The date the recipient confirmed list membership.



The most recent date the recipient last bounced.



The date the recipient was changed to "held" status because of bouncing too much email.



The date the recipient joined the list.



The date the recipient unsubscribed from the list.



The domain portion of the email address (e.g.,



The date the recipient's list membership will expire.



A recipient's full Internet email address.



The full name of this recipient.



The name of the list this recipient is a member of.



The type of mail the member has opted to received, whether 'M' (multipart-alternative, the default), 'T' (text) or 'H' (HTML). The tag %%mailformat_%% will be inserted into your content.



The recipient's unique ListManager member ID.



The membership type of this member, whether 'normal', 'confirm', 'private', 'expired', 'held', or 'unsub'.



The number of times a recipient's mail has bounced.



The recipient's password. If the recipient has no password, the field will be blank.



Whether or not ListManager has detected if this recipient can read HTML. The default is "F" or "False." If you have set ListManager to detect HTML reading capability, and the recipient reads a message with HTML, the value is "T" for "True."



The type of content this recipient is set to receive, whether digest, index, nomail, or mail.



The user ID information defined by you, such as a key back to another database.


More Information About Personalizing Messages in ListManager


Inserting a condition in your content is an easy way to personalize your message. If you'd like to learn more about message personalization and scripting, see Message Personalization and Scripting.