System Strings

System Strings Marketing Cloud includes a library of system-based personalization strings which can be included in a message or on a page to output a value, based on the context of the Subscriber, Contact or a message. Email Date Strings NOTE: Date-based...

String Constants

String Constants String (or text) constant values must use double or single quotes, as indicated in the example here: %%[ var @statusTier set @statusTier = "Gold" ]%% If quotation marks appear within the text, string constants can escape the delimiting quote when...

Email Data Strings

Email Data Strings String Description Example Output emailname_ Name assigned to the email Spring Newsletter _messagecontext The context in which the Subscriber viewed the message or page. Either: SEND – an email that is sent to a Subscriber PREVIEW – an email that is...

Boolean Constants

Boolean Constants Boolean constant values must use true or false values and are case-insensitive, as shown in the example below: %%[ var @statusTier, @freeShipping set @statusTier = AttributeValue("Tier Level") if @statusTier == "Gold" then /* string constant */ set...

Subscriber Data Strings

Subscriber Data Strings String Description Example Output emailaddr The email address of the Subscriber leon@limedash.com firstname_ or firstname The Subscriber’s first name from the ‘FirstName’ Subscriber Profile Attribute Leon lastname_ or lastname...

Attributes

Attributes Attribute Strings and other Personalization Strings can also be used with AMPscript. However, in this case, the double percentage delimiters (%%) should not be included. If the Attribute includes a space character or hyphen, the string must be contained in...