Nested If Statements

As it is valid to have any statement after then or else, this statement can be another if statement, each statement being nested, one within the other.

if (AccountType = 'C') // Account type = Current Account
{ // begin outer if
if (Balance > 0)
{ // begin inner if
alert ('Send new cheque book') ;
} // end inner if
} // end outer if

Next: Selection: The Case Statement