Please enable JavaScript to use CodeHS

AP CSA: CON-2.A.3

CodeHS Lessons

A one-way selection (if statement) is written when there is a set of statements to execute under a certain condition. In this case, the body is executed only when the Boolean condition is true.

Standard
3.2 if Statements and Control Flow
Standard
1.11 If Statements
2.11 If Statements
Standard
5.2 if Statements and Control Flow
Standard
3.11 If Statements
4.12 If Statements
Standard
1.12 If Statements
9.2 if Statements and Control Flow
Standard
1.12 If Statements
9.2 if Statements and Control Flow
Standard
3.11 If Statements
4.12 If Statements