Converts a string to uppercase.
 string upper( string input )


 {upper('the quick brown fox')} = THE QUICK BROWN FOX

Display a User’s Name in All Caps

Use Case: You pass a variable called “userName”, in which users can capitalize the letters however the like. For consistency, you want everyone’s userName to appear all uppercased in a template.


<p>Hello, {upper(userName)}</p>

Output: Hello, COOLUSER.

Explanation: This script uses the upper() fuction to force uppercase every element of a string, in this instance, the each letter of the “user_name” custom field on a user profile.

Contact us