|

The boolean tyro

Do you want to be a boolean tyro?

Many beginners write if-conditions as in this statement:

if (isBlue == true) ...

[See the same interaction in Flash]

Below, check the box next to an equivalent, shorter, if-condition. Then check your answer.


Feedback

 

 

isBlue   or  ! isBlue

|
|
  
Help | Glossary
© 2002 Copyright Cornell University