Skip to content

Instantly share code, notes, and snippets.

@katydorjee
Created February 7, 2024 01:27
Show Gist options
  • Save katydorjee/80f205f05b9017fe53e27bfdfeea613a to your computer and use it in GitHub Desktop.
Save katydorjee/80f205f05b9017fe53e27bfdfeea613a to your computer and use it in GitHub Desktop.
Ampscript print function
%%[
SET @FirstName = 'Karma'
SET @LastName = 'Dorjee'
/* Use below line of code to print when debugging */
Output(Concat("My first name is ", @FirstName, "<br>"))
]%%
/* Use below line of code to print in the email message or SMS message or Push message or CloudPage */
My last name is %%=v(@LastName)=%%
-------------------------
Output:
My first name is Karma
My last name is Dorjee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment