if..else if
You can test for more than one condition using the if..else if conditional statement. For example, the following code not only tests whether the value of x exceeds 20, but also tests whether the value of x is negative:
If an if or else statement is followed by only one statement, the statement does not need to be enclosed in braces. For example, the following code does not use braces: