Hi
With AMPScript, a Salesforce ExactTarget Marketing Cloud developer language used to dynamically insert content into emails, landing pages, mobile and push notifications.
AMPscript is a scripting language that you can embed within HTML emails, text emails, landing pages, SMS messages, and push notifications from MobilePush. The system processes the script at the point where you include it in the message to render content on a subscriber-by-subscriber basis. The Marketing Cloud application handles all AMPscript calls at the end of the email send.
AMPscript can also interact with your data extensions. Use AMPscript to include information from your data extensions in your messages and to update data extensions with information from your landing pages.
Use AMPscript to process information and include information from your data extensions in the body of your messages and landing pages to provide advanced personalization for the subscribers.
How to use AMPscript in email message example:
%%[if emailaddr == emailaddr then ]%%
%%[
var @URL1,
set @URL1 = "https://help.salesforce.com/"
]%%
%%= BeginImpressionRegion("Banner Placement") =%%
To visit Help
<a href="%%=RedirectTo(@URL1)=%%" alias="Help">go here to login</a><br />
<br />
<br />
Check out the home page
<a href="http://marketingcloud.com" alias="home">here</a><br />
%%= EndImpressionRegion() =%%
%%[ else ]%%
This is the Default content!
%%[
endif
]%%
Hope this will help you.
Thanks