Last active
January 2, 2022 07:35
-
-
Save nmaratasdev/a5afb00eb28ca35934a265abd9e9716c to your computer and use it in GitHub Desktop.
ampscript-string-functions-beginner-empty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/