LowerCase Function

The LowerCase function returns the string in all lowercase letters. A good use case is if you need to format data that is incorrectly using all upper cases for example a URL string. A similar function is the UpperCase function and ProperCase function.



1 = String value that you want be lowercase (can be a variable)




var @string 
set @string = “AMPSCRIPT.COM”
set @lowercaseString = Lowercase(@string)
Output: %%=v(@lowercaseString)=%%



Output: ampscript.com


The LowerCase function takes the AMPSCRIPT.COM string and changes the output to all lowercase. This is helpful if your data is not formatted correctly in the data extension and you want it to show consistently in all lowercase letters.

Leave a Reply

Your email address will not be published. Required fields are marked *