!= — inequality

Syntax and values

Behavior and details

!= asks whether two values differ. It gives the opposite Boolean answer to ==, including when comparing lists, maps, or none.

Pliro does not automatically turn text into numbers for this comparison: 2 != "2" is true. Automatically changing a value’s type is called coercion; this operator does not do it. If a function reports “nothing found” using empty text "", compare with that empty text. none is a different value.

Example

# language: en
say 1 != "1"
say none != false
say([1] != [2])

Syntax and values · Built-ins · Programming guides