[Type] Bool

Part of: mobl
Inherits from: mobl::Object

Represent boolean values (true or false).

Instantiation

A new Bool can be created by using literal boolean values.

Example:

var b = true;
var b2 = false;

Operators

&&

Returns true when both the left and right operand are true.

Example:

true && true // -> true
false && true // -> false

||

Returns true when either the left or right operand is true.

Example:

true || true // -> true
false || true // -> true
false || false // -> false
mobl/bool.txt · Last modified: 2013/10/01 02:28 (external edit)