Equal

library operator
ID: 4fe3f7d5-4401-4ff4-9c9b-120ff613b79a
Emits true if number A equals number B.

Behavior

Test data showing the behavior of Equal

True

It returns true for equal numbers.

Input Output
{"a":8.4,"b":8.4} true
{"a":-3,"b":-3} true
{"a":0,"b":0} true
Null

It emits false for comparisons with null except if both are null.

Input Output
{"a":null,"b":null} true
{"a":1,"b":null} false
{"a":null,"b":-2.5} false
False

It returns false for unequal numbers.

Input Output
{"a":6.4,"b":3.4} false
{"a":-4,"b":-1} false
{"a":0,"b":2} false

Implementation

The implementation of Equal makes use of the following 1 operators.

1
Evaluates an expression.

Used in

The Equal operator is used by 1 operators.

Selects the n-th item in a stream of generic items, n being the index.