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...

Sender Data Strings

Sender Data Strings String Description Example Output replyname The email From name, retrieved from the Sender Information in the Sender Profile, or the selected user profile Limedash Corporation replyemailaddress The email From email address, retrieved from the...