147 - Conditionals
Ensure that in conditional expressions (e.g. if statements), the correct variables are being checked and the correct operators, if any, are being used to combine them.
For e.g. using ||
instead of &&
is a common error.
- Conditionals -> Control Flow
- if/else/for/while/do
- break/continue/return
- Predicates & Expressions
- Variables & Operators
- E.g.
||
instead of&&
- Check Conditionals