Please enable JavaScript to use CodeHS

AP CSA: CON-2.A.5

CodeHS Lessons

A multi-way selection is written when there are a series of conditions with different statements for each condition. Multi-way selection is performed using if-else-if statements such that exactly one section of code is executed based on the first condition that evaluates to true.

Standard
3.4 else if Statements
Standard
1.12 If/Else Statements
2.11 If Statements
Standard
5.4 else if Statements
Standard
3.12 If/Else Statements
4.12 If Statements
Standard
1.13 If/Else Statements
9.4 else if Statements
Standard
1.13 If/Else Statements
9.4 else if Statements
Standard
3.12 If/Else Statements
4.12 If Statements