Difference between revisions of "ObjectType:bool"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Description ==
 
== Description ==
 +
{{ObjectType-Vitals|bool|[[LavishScript]]|none|'''TRUE''' or '''FALSE'''|bool|no|unsigned int}}
 +
 
Short for <tt>boolean</tt>, a bool groups all numbers into exactly two categories, one called [[LavishScript:TRUE|TRUE]] and one called [[LavishScript:FALSE|FALSE]].  The TRUE category is made up of all numbers except for zero, and the FALSE category is made up of only zero.
 
Short for <tt>boolean</tt>, a bool groups all numbers into exactly two categories, one called [[LavishScript:TRUE|TRUE]] and one called [[LavishScript:FALSE|FALSE]].  The TRUE category is made up of all numbers except for zero, and the FALSE category is made up of only zero.
  
Line 8: Line 10:
 
* '''Toggle''': Toggles between TRUE and FALSE
 
* '''Toggle''': Toggles between TRUE and FALSE
 
* '''Set['''[[LavishScript:Mathematical Formulae|formula]]''']''': Sets this bool to a specific value
 
* '''Set['''[[LavishScript:Mathematical Formulae|formula]]''']''': Sets this bool to a specific value
 
== Returns ==
 
'''TRUE''' or '''FALSE'''
 
  
 
== Examples ==
 
== Examples ==

Revision as of 21:46, 6 April 2006

Description

Object Type Vitals
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.

Members

(none)

Methods

  • Toggle: Toggles between TRUE and FALSE
  • Set[formula]: Sets this bool to a specific value

Examples

Declare a boolean variable

  • declare Boo1 bool FALSE

Set a boolean value

  • Boo1:Set[TRUE]

Toggle a boolean value

  • Boo1:Toggle

Operates On

unsigned int

See Also