+ 2

I really am not understanding what booleans are !!

I am not really understanding what booleans are by he content given; so can anyone explain me in short. Please !?

19th Apr 2017, 8:48 AM
Anurag Pilankar
6 ответов
+ 10
Hi Anurag! In short, booleans are a data type of variables, and their values can only be 2: true or false. You can refer to my answer on the post below for a more detailed explanation with examples. Hope it helps you. https://www.sololearn.com/discuss/326691/?ref=app
19th Apr 2017, 9:16 AM
Pao
Pao - avatar
+ 5
Think like as binary... 0 is false and 1 is true
19th Apr 2017, 12:06 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
boolean is a data type like int, short and others difference is that you can store only true or false in it
19th Apr 2017, 9:00 AM
Martin Soukup
Martin Soukup - avatar
+ 2
yes no. up down. 0 1. boolean is true or false. it doesn't save value but state.
19th Apr 2017, 9:19 AM
Andre van Rensburg
Andre van Rensburg - avatar
+ 2
yes no. up down. 0 1. boolean is true or false. it doesn't save value but state.
19th Apr 2017, 9:19 AM
Andre van Rensburg
Andre van Rensburg - avatar
+ 1
Hello. You must think in boolean as a switch that lets you decide which way to follow. If boolean is true follow on the right, in otherwise take the left. I hope you had understood me.
5th Mar 2018, 10:29 PM
David Rueda 🇪🇸
David Rueda  🇪🇸 - avatar