What are Boolean values?

Asked by stem_mind · 2 weeks ago

1 Answer

22
amorebise · 2 weeks ago Top Answer

A Boolean is a data type that can only be True or False. Think of a light switch—it is either ON or OFF. There is no middle ground.

We use these to control our 'If' statements. If the condition is True, the code runs. If it’s False, it doesn't. Simple and powerful logic.

Log in to add a comment.