SplitScript reference / Equatable

Equatable

capability

capability Equatable

Supports equality comparison.

Equality is available for values whose representation can be compared safely.

Examples

Compare two values

let sameRoom = 4 == 4

Implemented by

MemberDescriptionAvailable through
DurationRepresents a precise span of time.
FileVersionA four-part numeric Windows executable version.
InstantIdentifies one reading of the runtime's monotonic clock.
MemoryRangeAccessSelects the permissions required by a mapped-memory query.
MonoVersionIdentifies the supported Unity Mono metadata layouts.
NoneStores the single unit value None.
PointerSizeDescribes the native pointer width used by a process module.
StringStores ordinary immutable UTF-8 text in WebAssembly GC memory.
TimerStateDescribes the current timer state.
addressStores a process address.
boolStores a boolean value.
charStores one Unicode scalar value.
f32Stores a 32-bit floating-point number.
f64Stores a 64-bit floating-point number.
i16Stores a 16-bit signed integer.
i32Stores a 32-bit signed integer.
i64Stores a 64-bit signed integer.
i8Stores an 8-bit signed integer.
u16Stores a 16-bit unsigned integer.
u32Stores a 32-bit unsigned integer.
u64Stores a 64-bit unsigned integer.
u8Stores an 8-bit unsigned integer.

Operators

MemberDescriptionAvailable through
==Reports whether this value and another value are equal.
!=Reports whether this value and another value differ.