Variable Filters
Filters can be added to Variables to format data.
To use a filter use a pipe character "|" after the variable name, then write the filter name and, optionally, a colon character ":" and the filter parameter.
Filters:
[Amount|currency:$]
If the variable [Amount] is set to 400.5 it will display on-screen as: $400.50
The "currency" filter, shows any amount as a currency with the specified money sign.
[Amount|number:2]
If the variable [Amount] is set to 123400.5789 it will display on-screen as: 123,400.58
The "number" filter, shows any amount as a formated number with the specified decimals.
[Name|uppercase]
If the variable [Name] is set to "John" it will display on-screen as: JOHN
The "uppercase" filter, shows any string data in uppercase.
[Name|lowercase]
If the variable [Name] is set to "John" it will display on-screen as: john
The "lowercase" filter, shows any string data in lowercase.
[Name|splitLt:"-"]
If the variable [Name] is set to "John-Doe" it will display on-screen as: John
The "splitLt" filter, shows only the characters to the left of the specified separator from any string.
[Name|splitRt:"-"]
If the variable [Name] is set to "John-Doe" it will display on-screen as: Doe
The "splitRt" filter, shows only the characters to the right of the specified separator from any string.