diff --git a/concepts/conditionals/about.md b/concepts/conditionals/about.md index a69542aa0f..8b1eea4e21 100644 --- a/concepts/conditionals/about.md +++ b/concepts/conditionals/about.md @@ -67,9 +67,13 @@ if (num >= 0 && num < 1) { // The inner brackets are obsolete because relational operators // have higher precedence than logical operators. -if (num >= 0 && num < 1) { + + +if ((num >= 0) && (num < 1)) { // ... } + + ``` Also, consider using additional variables to make the code more readable.