if Statement - Overview
The purpose of the if statement is to make decisions..
if-else Flowchart equivalent
There are several graphical ways to show the flow of programs..
'if' Statement - 'else if' style
It is common to make a series of tests on a value, where the else part contains only another if statement..
'if' Statement - if inside if
You can put an if statement inside another if statement..
'if' Statement - Indentation
Indent to make programs readable.
'if' Statement - Braces
If the true or false part of and if statement has only one statement, you do not need to use braces..
'else' Not Required
It is not necessary to have the else part of an if statement. Maybe only 50% of the time there is an else part..
if Statement - Overview
The purpose of the if statement is to make decisions..