|
|

The boolean tyro

Boolean tyro

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

NEVER write    b != true .   ALWAYS write    ! b .

NEVER write    b != false . ALWAYS write     b .

 

Click here to look at another mark of a boolean tyro.

 

 
|
|
  
Help | Glossary
© 2002 Copyright Cornell University