IS_SAME

Check if values are the same

Description

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

Similar to IS\_EQUAL except that it does not perform deep comparison for objects and arrays. Instead objects are considered "same" only if they refer to the instance in the memory. In most cases, you might want to use IS\_EQUAL instead of this function.The functionality of this function is equal to JavaScript's [Object.is\(\) method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\).

Function signature

IS_SAME(value1: , value2: ) => Boolean

Parameter

Description

Value 1

First value to compare

Value 2

Second value to compare

Examples

Formula

Return value

IS_SAME("cat", "cat")

true

IS_SAME(2, 2)

true

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

false

IS_SAME(["cat"], ["cat"])

false