Conditionals¶
Default Values¶
Consider ternary operator 'or' instead of nil checks to improve readability.
Don't Write "if true then return true"¶
When returning or setting a variable to the value of the conditional statement itself, don't use an if else block.
Prefer positive boolean expressions¶
This makes the code easier to read.