Boolean Operators, Equality
•
==, equality
•
e.g.
5 == 5 returns true
•
5.5 == 4.3 returns false
•
!=, not equal
•
e.g.
5 != 5 returns false
•
5.5 != 4.3 returns true
•
Be careful about confusing the == operator and the = assignment operator. This is a very common error and is surprisingly difficult to catch since the compiler will often not report an error.