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.
6Live Lessons
0Completed
Not StartedCurrent Status
Lesson Roadmap
5.1 · if StatementsLesson 5.1: Using if Statements to Decide When a Motor Should RunOpen5.2 · else if ChainingLesson 5.2: Using else if Chains to Pick One Robot Action at a TimeOpen5.3 · Comparison OperatorsLesson 5.3: Using Comparison Operators to Protect Hardware LimitsOpen5.4 · Logical OperatorsLesson 5.4: Combining Sensor Checks with AND and OR LogicOpen5.5 · Challenge: Intake LogicLesson 5.5: Challenge — Build Intake Logic for Multi-Stage Game Piece SortingOpenUnit 5 · Mastery QuizUnit 5 Mastery Quiz: Logic & DecisionsOpen
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.