Unit 2: Decisions and Logic
A condition is a question with a true-or-false result. You will use conditions to choose one path, handle several cases, and combine rules without making them unclear.
5Lessons
0Completed
Not StartedCurrent Status
Lesson Roadmap
2.1 · Compare Two ValuesLesson 2.1: Compare Two ValuesOpen2.2 · Make a Choice with IfLesson 2.2: Make a Choice with IfOpen2.3 · Use Else and Else IfLesson 2.3: Use Else and Else IfOpen2.4 · Combine Rules with And, Or, and NotLesson 2.4: Combine Rules with And, Or, and NotOpen2.5 · Coding Challenge: Package SorterLesson 2.5: Coding Challenge: Package SorterOpen
What This Unit Covers
Build comparisons that return true or false.
Use if, else if, and else branches in a clear order.
Combine conditions with and, or, and not.
Review the sequence and goals here, then resume at your first incomplete lesson.
Already know this unit?
Complete the comprehensive coding challenge to prove every unit objective and jump directly to Unit 3: Loops and Repeated Work.
Stuck on this lesson?
Ask about anything on this page. It can see which lesson you have open and which part you are reading.