ObjectType:bool
From Lavish Software Wiki
Contents |
[edit]
Description
| bool | |
| Defined By | LavishScript |
| Inherits | none |
| Reduces To | TRUE or FALSE |
| Variable Object Type | bool |
| Uses Sub-Types | no |
| C/C++ Type | unsigned int |
Short for boolean, a bool groups all numbers into exactly two categories, one called TRUE and one called FALSE. The TRUE category is made up of all numbers except for zero, and the FALSE category is made up of only zero.
[edit]
Members
(none)
[edit]
Methods
- Toggle: Toggles between TRUE and FALSE
- Set[formula]: Sets this bool to a specific value
[edit]
Examples
[edit]
Declare a boolean variable
- declare Boo1 bool FALSE
[edit]
Set a boolean value
- Boo1:Set[TRUE]
[edit]
Toggle a boolean value
- Boo1:Toggle
[edit]
Operates On
unsigned int
[edit]
