About this article
Upper() is a function that converts text into uppercase. This function can be used for making comparisons between two pieces of text that might not have a case match.
Pre-requisites
|
Syntax
Syntax | {{Upper(text)}} |
Input | text |
Output | Uppercase version of text |
Example 1
Using the Upper() function to convert text to uppercase.
Binding | {{Upper("this is text")}} |
Output | "THIS IS TEXT" |
Example 2
Using the IfElse() function to convert text Form.Warning to uppercase if a checkbox is checked.
Binding | {{IfElse(Form.ConvertToUpperCheckbox, Upper(Form.Warning), Form.Warning)}} | |
Input | Form.Warning= "this is a warning" | Form.Warning= "this is a warning" |
Condition | Checkbox checked = True | Checkbox checked = False |
Output | "THIS IS A WARNING" | "this is a warning" |
Example 3
Using the IfElse() function to convert text Form.Warning to uppercase if a dropdown is set to "Warning".
Binding | {{IfElse(Equals(Form.DocumentType.Name, "Warning"), Upper(Form.Warning), Form.Warning)}} | |
Input | Form.Warning= "this is a warning" | Form.Warning= "this is a warning" |
Condition | "Warning" selected in dropdown = True | "Warning" selected in dropdown = False |
Output | "THIS IS A WARNING" | "this is a warning" |
Example 4
Using the Upper() function to compare two pieces of text with the IfElse() function. The upper function is used to convert the two pieces of text to the same case and then compare.
Syntax | {{IfElse(Equals(Upper(Form.RecipientA), Upper(Form.RecipientB)), "Recipient A and B are the same and both packages should be consolidated and sent as one", Form.RecipientB)}} |
Input | Form.RecipientA = "John Smith", Form.RecipientB = "john smith" |
Condition | True |
Output | "Recipient A and B are the same and both packages should be consolidated and sent as one" |
Comments
0 comments
Article is closed for comments.