0

What is the use of boolean?

29th Dec 2017, 6:53 PM
HAPPY WIZARDS
HAPPY WIZARDS - avatar
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.
29th Dec 2017, 7:24 PM
Matthew
Matthew - avatar
0
I use it mainly as a flag
29th Dec 2017, 10:58 PM
Kostas Batz
Kostas Batz - avatar