Skip to main content
Version: Next

Equals

Checks if two objects are equal.

Description

Compares two objects (e.g. numbers) and returns true if they are equal. Returns false otherwise.

Notes:

  • This function is only executed if both inputs are defined. So it returns null if at least one of the two input is not defined.
  • If the two objects are not comparable (e.g. a number and a color) the result will be false.

Inputs

  • a (Object): The first object to compare.
  • b (Object): The second object to compare.

Outputs

  • a == b (Boolean): true if a and b are equal.