Skip to content

Boolean

Type

The Boolean type is used to represent boolean values. A boolean may either have the value true or false.

A Boolean variable may be initialized or mutated by assigning it a boolean literal (true or false) or a boolean expression, e.g.

var a = true;
var b = false;
var c = 3 < 7;

Inherited methods

toText

<function> Obtain the Text representation of this.

Receiver

T

Type Arguments

T

Returns

Text - the Text representation of this

Usage

Converts a Boolean to Text.

true.toText() == "true"