Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nmaratasdev/a5afb00eb28ca35934a265abd9e9716c to your computer and use it in GitHub Desktop.
Save nmaratasdev/a5afb00eb28ca35934a265abd9e9716c to your computer and use it in GitHub Desktop.
ampscript-string-functions-beginner-empty
<!-- Example Code -->
%%[
/*
* Empty logic
* If subscriber FirstName exists then set the name var to FirstName.
* If subscriber FirstName does not exist, then set the name var to Valued Customer.
*/
VAR @name
SET @name = ""
IF NOT EMPTY(@name) THEN
SET @name = ProperCase(@name)
ELSE
SET @name = "Valued Customer"
ENDIF
]%%
%%=v(@name)=%%
<!-- Example Output -->
Valued Customer
@nmaratasdev
Copy link
Author

Hi Everyone, you can view the tutorial by clicking here. Please feel free to comment on the page below to let us know if this helped!

AMPscript String Functions (Beginner Level)
https://www.myampscript.com/ampscript-string-functions-beginner/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment