Bool

Boolean type representing true or false values.

xxml
Language::Core

Methods

MethodParametersReturnsDescription
ConstructorBool^Create Bool (false)
Constructorvalue: boolBool^Create from literal
andother: Bool^Bool^Logical AND
orother: Bool^Bool^Logical OR
notBool^Logical NOT
equalsother: Bool^Bool^Equality check
toStringString^"true" or "false"
toBoolboolGet 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

See Also