== (Equality Operator)

Compares int, float, string or bool values of the same type. Strings compare by their bytes; NaN is unequal to every float, including itself. Payload-free union variants also support equality and variant tests. Records, lists and other aggregate values require an explicit supported structuralEquals comparison. See the equality rules.

Example

let isEqual = 5 == 5  // isEqual = true
isEqual = 5 == 5  // isEqual = true