fixed spelling errors, added more information (#28297)

- logic changes
- explanations on different statements
This commit is contained in:
Taiyue Tan
2019-01-16 07:34:17 +11:00
committed by Tom
parent b35f9a02ac
commit 5831dc657a

View File

@ -29,8 +29,7 @@ else {
}
```
Note that the `else` and `else if` sections are not required, while `if` is mandatory.
Note: `else` and `else if` sections are not required, while `if` is mandatory. Furthermore, `else` and `else if` can only be used following an `if` statement. In the instance when one `if` statement is executed, the following `else if` and `else` statements are ignored.
## Example
```