upper

Welcome to our newly overhauled Zephyr pages! See our new Overview, Examples, and Index.
Feedback is welcome at bottom of each page.
Converts a string to uppercase.

 string upper( string input )

Examples

 {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.

Zephyr:

<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.

Top