Skip to main content
Version: v1.0.0-beta.1

Booleans

The bool type in Noir has two possible values: true and false:

fn main() {
let t = true;
let f: bool = false;
}

The boolean type is most commonly used in conditionals like if expressions and assert statements. More about conditionals is covered in the Control Flow and Assert Function sections.