Skip to main content
Skip table of contents

Salutation First or Alternate Text

Question

How do I include alternate text for contacts who do not have a first name?

Answer

To print the contact's name if it exists, or alternate text if it doesn't, use the following:

Dear %%if first != "" then printdata first else print "Valued Customer"%%,

This will check if the first name field is filled for each contact.  If the first name exists, it will be printed.  If it is blank, the text "Valued Customer" will be printed.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.