22
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.