SplitScript reference / Equatable / notEquals

Equatable.notEquals

Operator

T.notEquals(other: T) -> bool where T: Equatable

Reports whether this value and another value differ.

This method is also the implementation of the != operator and is the logical inverse of Equatable.equals for every Equatable type.

Parameters

  • other: The other value of the same type.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Detect a state transition

let changed = 4u32 != 5u32