EQUALS
Syntax
Description
Checks to see if two values are identical by comparing the arguments of one column with the arguments of another column. Both columns must contain the same data type. EQUALS then returns a Boolean value, either true if both arguments are equal or false if the arguments are different. If one of the arguments is null, EQUALS returns false.
Examples
Data field type | Column1 | Column2 | EQUALS returns |
---|---|---|---|
15 | 35 | false | |
23 | 23 | true | |
Integer | 23 | null | false |
7.6 | 7.6 | true | |
8.6 | 15.3 | false | |
Float | 15.3 | null | false |
Aug 2, 2011 3:55:03 PM | Oct 15, 2010 4:34:34 AM | false | |
Mar 2, 2002 1:24:12 PM | Mar 2, 2002 1:24:12 PM | true | |
Date | null | Mar 2, 2002 1:24:12 PM | false |
false | true | false | |
true | true | true | |
Boolean | true | null | false |
Germany | George | false | |
George | George | true | |
German | Germany | false | |
String | null | George | false |
List | [ 1, 2, 3, 4 ] | [ 1, 2, 3, 4 ] | true |
List | [ 1, 2, 3, 4 ] | [Â 5, 6, 7, 8Â ] | false |
null | null | true |
Instead of using a function, you could also use the equality operator ==.