Modifiers
Modifiers can be added after the replacement code, separated by a colon, to alter the format of the output.
Valid Modifiers:
UPPERCASE: Converts the text to all uppercase letters.
Example:
${person.profile.firstname:UPPERCASE}Result:
GASTON
ROUND_DOWN_0: Rounds a number down to the nearest integer (0 decimal places).
Example:
${some.number:ROUND_DOWN_0}with a value of 123.333Result:
123
ROUND_DOWN_2: Rounds a number down to two decimal places.
Example:
${some.number:ROUND_DOWN_2}with a value of 123.333Result:
123.33
ROUND_UP_0: Rounds a number up to the nearest integer (0 decimal places).
Example:
${some.number:ROUND_UP_0}with a value of 123.333Result:
124
ROUND_UP_2: Rounds a number up to two decimal places.
Example:
${some.number:ROUND_UP_2}with a value of 123.333Result:
123.34
SPACED: Adds a space between each character of a string.
Example:
${some.text:SPACED}with a value of "Thalamus"Result:
T h a l a m u s
Last updated
Was this helpful?
