upper

Converts a string to uppercase.

InputArgumentsReturnsstringno argumentsstring
Source

Behaviors

Coerces scalars to text
A scalar value such as a number or a boolean is converted to its text form before matching, so 42 is accepted as "42".
BasicSource

Converts the value to uppercase.

Given

{"code": "us-east-1"}

Template

{{ code | upper }}

Result

US-EAST-1
LiteralSource

Uppercases a string literal with no variables.

Template

{{ "hello" | upper }}

Result

HELLO
UnicodeSource

Uppercases a multi-byte string, keeping the accent.

Given

{"word": "café"}

Template

{{ word | upper }}

Result

CAFÉ