0
What is the use of boolean?
2 Answers
0
Is there something specific you have in mind...? Usually a boolean is used a test for an if statement or a switch, e.g. "if <boolean>, do this, if not <boolean>, do this" where "<boolean>" is either true/1 or false/0.
0
I use it mainly as a flag