Returns specified string with the first letter of each word capitalized.
Syntax
ProperCase(sourceString)
The ProperCase() function has one parameter:
sourceString (string): Required. The string to convert to proper case.
Usage
To use the function, pass it a string that you want to convert to proper case. The function converts the first letter of each word to uppercase, regardless of the length of the word.
This example converts certain address strings from all-caps to proper case, and then uses the Concat() function to combine them.
%%[
Var @addressLine1, @city, @postalCode, @fullAddress
Set @addressLine1 = "9 BYWATER STREET"
Set @city = "LONDON"
Set @postalCode = "SW3 4NX"
Set @fullAddress = Concat(ProperCase(@addressLine1), ", ",
ProperCase(@city), " ",
@postalCode)
]%%
<p>Visit your nearest retail location at %%=v(@fullAddress)=%%.</p>
The function returns the specified strings in proper case.
Visit your nearest retail location at 9 Bywater Street, London SW3 4NX.