From 773aae4fdc4cdb77216f2ddb943f85d62934ca7e Mon Sep 17 00:00:00 2001 From: Pratik Lodha Date: Thu, 20 Dec 2018 17:00:51 +0530 Subject: [PATCH] if-else definition made more clear to avoid confusion (#25449) --- guide/english/javascript/if-else-statement/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/english/javascript/if-else-statement/index.md b/guide/english/javascript/if-else-statement/index.md index 5bca5e4626..9fecb81449 100644 --- a/guide/english/javascript/if-else-statement/index.md +++ b/guide/english/javascript/if-else-statement/index.md @@ -3,15 +3,15 @@ title: If-Else Statement --- ## Introduction -The `if` statement executes a statement if a specified condition is `true`. If the condition is `false`, another statement can be executed using the `else` statement. +The `if` statement executes a statement if a specified condition is `true`. If the condition is `false`, then the statement inside `else` block gets executed. **Note:** The `else` statement is optional. ```javascript if (condition) { - /* do something */ + /* do this if condition is TRUE */ } else { - /* do something else */ + /* do this if condition is FALSE (or not TRUE) */ } ```