Skip to main content

Any.!=

!=that

Group: Operators
Aliases: not equals

Documentation

Checks if self is not equal to that.

Arguments

  • that: The object to compare self against.

Examples

Checking if the variable a is not equal to 147.

      from Standard.Base import all

example_inequality =
a = 7 * 21
a != 147

Remarks

Implementing Your Own Inequality

We recommend that you do not implement your own inequality, instead relying on the default definition given here. If you do, please ensure that you satisfy universal equality, as described in the documentation for Any.==.