upper
Converts a string to uppercase.
InputArgumentsReturns
Sourcestringno argumentsstringBehaviors
- Coerces scalars to text
- A scalar value such as a number or a boolean is converted to its text form before matching, so
42is accepted as"42".
BasicSource
Converts the value to uppercase.
Given
{"code": "us-east-1"}Template
{{ code | upper }}Result
US-EAST-1LiteralSource
Uppercases a string literal with no variables.
Template
{{ "hello" | upper }}Result
HELLOUnicodeSource
Uppercases a multi-byte string, keeping the accent.
Given
{"word": "café"}Template
{{ word | upper }}Result
CAFÉ