Skip to main content
Version: v0.36.0

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.