September 2011
Beginner
650 pages
15h 47m
English
Chapter 1 introduced the if statement. It is examined in detail here. The complete form of the if statement is
![]()
where the targets of the if and else are single statements. The else clause is optional. The targets of both the if and else can be blocks of statements. The general form of the if, using blocks of statements, is

If the conditional expression is true, the target of the if will be executed; otherwise, if it exists, the target of the else will be executed. At no time will both of them be executed. The conditional expression ...
Read now
Unlock full access