a equals b
|
Group |
Returns true if a and b are equal. The check depends on the data types of parameters a and b.
Data Types
If both arguments are of type String, a String comparison is performed.
If one argument is of type Boolean, the other one will be converted to Boolean and a Boolean comparison is done.
In all other cases, a numeric comparison will be performed using BigDecimal.
Dates and Timestamps are converted to 'Unix time', i.e. the number of milliseconds since 1970-01-01 00:00:00 in order to compare them numerically.
See section Data Types (→ 'Comparisons and types').
Description of Parameters
|
Parameter |
Description |
|
a |
Value. |
|
b |
Value. |
Examples
|
Parameter a |
Parameter b |
Result |
|
Text |
Text |
true |
|
Text |
text |
false |
|
1234 |
1234 |
true |
|
01234 |
1234 |
false |
|
1234 |
1234.0 |
false |