SplitScript reference / bool
bool
Built-in type
bool
Stores a boolean value.
Boolean values are true or false and are required by conditions and lifecycle decision blocks.
Examples
Use bool
let isBoss = current.level == 7
Capabilities
| Member | Description | Available through |
|---|---|---|
| Debug | Produces an unambiguous structural representation of a value. | |
| Display | Supports conversion to a user-facing textual representation. | |
| Equatable | Supports equality comparison. | |
| MemoryReadable | Supports deserialization from process memory. |
Operators
| Member | Description | Available through |
|---|---|---|
| == | Reports whether this value and another value are equal. | Available through Equatable |
| != | Reports whether this value and another value differ. | Available through Equatable |
| ! | Inverts a boolean value. |
Methods
| Member | Description | Available through |
|---|---|---|
| debugString | Converts the receiver to its unambiguous structural representation. | Available through Debug |
| toString | Converts the receiver to its user-facing string representation. | Available through Display |