Unequal ()

WMA link


Unequal[x, y] or x != y or xy

is False if x and y are known to be equal, or True if x and y are known to be unequal.

Commutative properties apply so if x != y then y != x.

For any expression x and y, Unequal[xy] == Not[Equal[xy]].


Comparisons can be chained:

Strings are allowed:

Comparison to mismatched types is True:

Lists are compared based on their elements:

Unequal using an empty parameter or list, or a list with one element is True. This is the same as 'Equal".

TrueQ
UnsameQ