IS_EQUAL

Check if values are equal

Description

Returns true if the both parameter values are equal, otherwise false. Same than using the == operator in formulas.

The values are considered equal if they are of the same type and represent the same value. If the values are objects or arrays, a deep comparison is performed. Objects are considered equal if they have the same properties. Arrays are considered equal if they have equal items in the same order.

Note that null and undefined are not equal. Also note that a number, e.g. 5 and its string representation "5" are not equal.

Function signature

IS_EQUAL(value1: , value2: ) => Boolean

Parameter

Description

Value 1

First value to compare

Value 2

Second value to compare

Examples

Formula

Return value

IS_EQUAL("cat", "cat")

true

IS_EQUAL({name: "John"}, {name: "John"})

true

IS_EQUAL(["cat"], ["cat"])

true