A Boolean is a datatype in programming. This datatype only has 2 modes, it’s either true
or false
. you can translate it to something being on
or off
. You can also see it as a 1
and a 0
. Most programming languages see a 1
as the value true
and 0
as the value false
when put inside an if statement.