Bool
Boolean type representing true or false values.
xxml
Language::CoreMethods
| Method | Parameters | Returns | Description |
|---|---|---|---|
| Constructor | — | Bool^ | Create Bool (false) |
| Constructor | value: bool | Bool^ | Create from literal |
| and | other: Bool^ | Bool^ | Logical AND |
| or | other: Bool^ | Bool^ | Logical OR |
| not | — | Bool^ | Logical NOT |
| equals | other: Bool^ | Bool^ | Equality check |
| toString | — | String^ | "true" or "false" |
| toBool | — | bool | Get raw value |
Examples
Boolean Operations
xxml
Instantiate Bool^ As <a> = Bool::Constructor(true);
Instantiate Bool^ As <b> = Bool::Constructor(false);
Instantiate Bool^ As <andResult> = a.and(b); // false
Instantiate Bool^ As <orResult> = a.or(b); // true
Instantiate Bool^ As <notResult> = a.not(); // false