|

The boolean tyro

Boolean tyro

Yes!    isBlue == true     and     isBlue    have the same values!

NEVER write    isBlue == true .   ALWAYS write    isBlue .

NEVER write    isBlue == false . ALWAYS write     ! isBlue .

Below, check the button next to the expression that is equivalent, to

b != true

Then check your answer.


Feedback

 

 

 b     or      ! b

|
|
  
Help | Glossary
© 2002 Copyright Cornell University