From 1bfae617903496abf8ec9fa19c467008fc3cddd5 Mon Sep 17 00:00:00 2001 From: Lauren Date: Fri, 21 Dec 2018 05:33:09 -0600 Subject: [PATCH] Update index.md (#26198) --- guide/english/cplusplus/conditional-operator/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/english/cplusplus/conditional-operator/index.md b/guide/english/cplusplus/conditional-operator/index.md index 135383a3c2..7a93903dcc 100644 --- a/guide/english/cplusplus/conditional-operator/index.md +++ b/guide/english/cplusplus/conditional-operator/index.md @@ -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