Booleans

The bool type has exactly two values: true and false.

enabled = true
strict  = false

In expressions

Booleans are produced by every comparison and combined with the logical operators &&, ||, and !. See Expressions for the full set.

ready    = !pending && enabled
oversize = width > 100u32 || height > 100u32

Branching on a bool

An if expression takes a bool condition. See Control Flow for the if / else syntax.