The transforms in this category modify letter casing:
Transform | Description |
---|---|
capitalize | Changes the first letter of words in the value to uppercase, and the remaining letters in the words to lowercase |
initialCapital | Changes the first letter of the first word in the value to uppercase, and the remaining letters in the value to lowercase |
isLowerCase | Returns true if the value contains no uppercase letters |
isMixedCase | Returns true if the value contains uppercase and lowercase letters |
isUpperCase | Returns true if the value contains no lowercase letters |
lowercase | Changes the letters in the value to lowercase |
uppercase | Changes the letters in the value to uppercase |
capitalize
Changes the first letter of words in the value to uppercase, and the remaining letters in the words to lowercase.
For example, if a Field named City has the value "WILKES-BARRE", the result of [City:capitalize]
is "Wilkes-Barre".
initialCapital
Changes the first letter of the first word in the value to uppercase, and the remaining letters in the value to lowercase.
For example, if a Field named City has the value "WILKES-BARRE", the result of [City:initialCapital]
is "Wilkes-barre".
isLowerCase
Returns true if the value contains no uppercase characters. Otherwise, it returns false. This transform is intended for advanced usage where a template must vary based on whether a value contains no uppercase characters. This transform does not add any text to the output.
For example, if a Field named Surname has the value "smith", the result of [Surname:isLowerCase]
is true. To vary the template output based on the result, follow this model:
<[Surname:isLowerCase]true|false>
In practice, "true" and "false" above would typically be replaced by some manipulation of the value:
<[Surname:isLowerCase][Surname:uppercase]|[Surname]>
isLowerCase does not verify that a value contains only lowercase letters. isLowerCase ensures that the value contains no uppercase letters. That means isLowerCase will return true for a value that contains no letters at all, or contains only digits, punctuation, or lowercase letters.
Value | isLowerCase Result |
---|---|
smith | true |
smith-barney | true |
smith + barney | true |
(smith) | true |
SMITH | false |
Smith | false |
123 | true |
isMixedCase
Returns true if the value contains uppercase and lowercase letters. Otherwise, it returns false. This transform is intended for advanced usage where a template must vary based on whether a value contains a mix of uppercase and lowercase letters. This transform does not add any text to the output.
For example, if a Field named Surname has the value "Smith", the result of [Surname:isMixedCase]
is true. To vary the template output based on the result, follow this model:
<[Surname:isMixedCase]true|false>
In practice, "true" and "false" above would typically be replaced by some manipulation of the value:
<[Surname:isMixedCase][Surname:uppercase]|[Surname]>
Value | isMixedCase Result |
---|---|
Smith | true |
Smith-Barney | true |
Smith + Barney | true |
(smith) | false |
SMITH | false |
smith | false |
123 | false |
isUpperCase
Returns true if the value contains no lowercase characters. Otherwise, it returns false. This transform is intended for advanced usage where a template must vary based on whether a value contains no lowercase characters. This transform does not add any text to the output.
For example, if a Field named Surname has the value "SMITH", the result of [Surname:isUpperCase]
is true. To vary the template output based on the result, follow this model:
<[Surname:isUpperCase]true|false>
In practice, "true" and "false" above would typically be replaced by some manipulation of the value:
<[Surname:isUpperCase][Surname:lowercase]|[Surname]>
isUpperCase does not verify that a value contains only uppercase letters. isUpperCase ensures that the value contains no lowercase letters. That means isUpperCase will return true for a value that contains no letters at all, or contains only digits, punctuation, or uppercase letters.
Value | isUpperCase Result |
---|---|
SMITH | true |
SMITH-BARNEY | true |
SMITH + BARNEY | true |
(SMITH) | true |
smith | false |
Smith | false |
123 | true |
lowercase
Changes the letters in the value to lowercase.
For example, if a Field named City has the value "WILKES-BARRE", the result of [City:lowercase]
is "wilkes-barre".
uppercase
Changes the letters in the value to uppercase.
For example, if a Field named City has the value "Wilkes-Barre", the result of [City:uppercase]
is "WILKES-BARRE".