Overview
The upper()
function converts all letters within a string to uppercase, leaving other characters unchanged, and returns the modified string.
Syntax
upper(str)
Argument | Type | Description |
---|---|---|
str |
String | The string to be modified |
Return type: String
Example of Result
return upper("abc536")
Result: ABC536
Example of Use
Retrieve posts and showcase their titles in uppercase format.
find().nodes({@post}) as posts
return upper(posts.title)