About this article
Lower() is a function that converts a piece of text to lowercase.
Pre-requisites
|
Syntax
Syntax | {{Lower(text)}} |
Input | text |
Output | Lowercase version of text |
Example 1
Using the Lower() function to convert text to lowercase.
Binding | {{Lower("THIS IS TEXT")}} |
Output | "this is text" |
Example 2
Using the IfElse() function to convert text Form.Subject to lowercase if a checkbox is checked.
Binding | {{IfElse(Form.ConvertToLowerCheckbox, Lower(Form.Subject), Form.Subject)}} | |
Input | Form.Subject = "THIS IS A SUBJECT" | Form.Subject = "THIS IS A SUBJECT" |
Condition | Checkbox checked = True | Checkbox checked = False |
Output | "this is a subject" | "THIS IS A SUBJECT" |
Example 3
Using the IfElse() function to convert text Form.Subject to lowercase if a dropdown is set to "Note".
Binding | {{IfElse(Equals(Form.DocumentType.Name, "Note"), Lower(Form.Subject), Form.Subject)}} | |
Input | Form.Subject = "THIS IS A NOTE" | Form.Subject = "THIS IS A NOTE" |
Condition | "Note" selected in dropdown = True | "Note" selected in dropdown = True |
Output | "this is a note" | "THIS IS A NOTE" |
Example 4
Using the Lower() function to compare two pieces of text with the IfElse() function. The lower function is used to convert the two pieces of text to the same case and then compare.
Binding | {{IfElse(Equals(Lower(Form.RecipientA), Lower(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" |
Related articles
Comments
0 comments
Article is closed for comments.