About this article
Equals() is a condition that returns True/False depending on if two values are equal or not. Equals() is case sensitive, comparisons between two values that are case variable can be compared using a Lower() or Upper() function to ensure the values are the same case.
Pre-requisites
|
Syntax
Syntax | {{Equals(Value1, Value2)}} |
Output | True/False |
Example 1
Using the Equals() function to check if two values are equal.
Binding | {{Equals("this is text", "this is text")}} |
Output | True |
Example 2
Using the Equals() function to check if two values are equal when they're not.
Binding | {{Equals("this is text", "this is another text")}} |
Output | False |
Example 3
Using the Equals() function with a Lower() function to match the case and make a comparison.
Binding | {{Equals(Lower("this is text"), Lower("THIS IS TEXT"))}} |
Output | True |
Example 4
Using the Not() condition with a Lower() function for checking if two pieces of text aren't equal.
Binding | {{Not(Equals(Lower("this is text"), Lower("THIS IS TEXT")))}} |
Output | False |
Example 5
Using the IfElse() function to see if Form.RecipientA equals Form.RecipientB with no case sensitivity.
Binding | {{IfElse(Equals(Lower(Form.RecipientA), Lower(Form.RecipientB)), "Send to the recipient listed above", Form.RecipientB)}} |
Input | Form.RecipientA = "John Smith", Form.RecipientB = "john smith" |
Condition | True |
Output | "Send to the recipient listed above" |
Comments
0 comments
Article is closed for comments.