if (boolean == false) vs. if (!boolean)

The Solution to if (boolean == false) vs. if (!boolean) is


Apart from "readability", no. They're functionally equivalent.

("Readability" is in quotes because I hate == false and find ! much more readable. But others don't.)

~ Answered on 2012-08-06 16:05:30


Most Viewed Questions: