Update index.md (#26198)

pull/26197/head^2
Lauren 2018-12-21 05:33:09 -06:00 committed by Manish Giri
parent 63424ff8f6
commit 1bfae61790
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ else
expression-2;
}
```
As an aside, if the expression under the conditional statement is only 1 line, curly braces are not necessary. However, it is recommended to use them to get in the habit.
The above code however can be used to check more than just two conditions in the following way/syntax:
```cpp