Skip to main content
UNIT_05 // unit.overview

Unit 5: Logic & Decisions

This unit builds the decision-making layer of robot code — from simple button checks to multi-sensor logic trees that automate game element sorting. Use if statements, else if chains, comparison operators, and logical AND/OR for hardware safety gates.

Beginner
6Live Lessons
0Completed
Not StartedCurrent Status

What This Unit Covers

Use if/else if/else chains to guarantee a single unambiguous command reaches hardware each loop cycle.
Implement comparison operators to create soft-limit safety zones that prevent motors from exceeding physical bounds.
Combine multiple sensor thresholds with logical AND/OR operators for robust, driver-verified hardware actions.
Use this page to orient students quickly, resume the right lesson, or skip ahead without digging through the entire sidebar.

Need to skip ahead?

Sign in to mark every lesson in this unit complete, or continue to the next unit without saving.

Skip Ahead