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
| Member | Description | Available through |
|---|---|---|
| Duration | Represents a precise span of time. | |
| FileVersion | A four-part numeric Windows executable version. | |
| Instant | Identifies one reading of the runtime's monotonic clock. | |
| MemoryRangeAccess | Selects the permissions required by a mapped-memory query. | |
| MonoVersion | Identifies the supported Unity Mono metadata layouts. | |
| None | Stores the single unit value None. | |
| PointerSize | Describes the native pointer width used by a process module. | |
| String | Stores ordinary immutable UTF-8 text in WebAssembly GC memory. | |
| TimerState | Describes the current timer state. | |
| address | Stores a process address. | |
| bool | Stores a boolean value. | |
| char | Stores one Unicode scalar value. | |
| f32 | Stores a 32-bit floating-point number. | |
| f64 | Stores a 64-bit floating-point number. | |
| i16 | Stores a 16-bit signed integer. | |
| i32 | Stores a 32-bit signed integer. | |
| i64 | Stores a 64-bit signed integer. | |
| i8 | Stores an 8-bit signed integer. | |
| u16 | Stores a 16-bit unsigned integer. | |
| u32 | Stores a 32-bit unsigned integer. | |
| u64 | Stores a 64-bit unsigned integer. | |
| u8 | Stores an 8-bit unsigned integer. |
Operators
| Member | Description | Available through |
|---|---|---|
| == | Reports whether this value and another value are equal. | |
| != | Reports whether this value and another value differ. |