0

Can someone please explain Boolean for me i hardly understand it

how does true and false work in boolean ?

1st Feb 2017, 3:02 PM
Lukhanyo
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
1st Feb 2017, 4:30 PM
Pankaj Vaghela
Pankaj Vaghela - avatar
+ 2
Boolean is works like a switch. I hope you got it.:)
1st Feb 2017, 9:32 PM
Martin Kondor
Martin Kondor - avatar
+ 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!
4th Feb 2017, 3:44 PM
Ethan Gray
Ethan Gray - avatar