0
Can someone please explain Boolean for me i hardly understand it
how does true and false work in boolean ?
3 Answers
+ 4
it's a data type.. like
in int... you can only put numbers
and in String... you can put text
same way Boolean can hold just two values either true(1) or false(0) ..no more
+ 2
Boolean is works like a switch. I hope you got it.:)
+ 1
Basically as you learned in the lessons a boolean can lead to a true statement or a false statement
so if you print in a console
4 == 5
you will get:
False
that is a boolean statement so a quick overview
a boolean is a just a true or false statement if is five equal to five True!