35 - Boolean equality
Boolean variables can be checked within conditionals directly without the use of equality operators to true
/false
. (see here)
- Boolean Equality ->
true
orfalse
- Use in Conditionals
if (x == true)
- Redundant Use -> Unnecessary
- Use Directly
if(x)