a equals b

This function 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").

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