We are using a data extension to populate a subject line with the first name and it looks like this:
%%[
VAR @FIRST_NAME
SET @FIRST_NAME = [FIRST_NAME]
/*SET @FIRST_NAME = "test"*/
if length(@FIRST_NAME) > 2 then
/* Capitalize */
SET @FIRST_NAME = ProperCase(@FIRST_NAME)
else /* All Caps */
SET @FIRST_NAME = Uppercase(@FIRST_NAME)
endif ]%%
%%[
if Length(@FIRST_NAME) < 3 then
Output(V(Concat("Want to get your taxes done?")))
else
Output(V(Concat("",@FIRST_NAME,", want to get your taxes done?")))
endif
]%%
What if the first name has a dash in it?
"Mike-Paul"
The data extension has that exact name in the first name column but displays in an email like Mike-paul
How do we ensure the P remains capital?