Skip to content

bool

The bool is a type keyword representing byte-sized booleans; the bool type can represent one of the two finite states: true and false.

Syntax

bool isTrue = true; // immutable boolean constant.
var bool isTrue = true; // mutable boolean variable.