UNIT_05 // course overview
Unit 5: Logic & Decisions
In this unit, we build the decision-making layer of robot code, from basic button checks to multi-sensor logic that safely automates mechanism behavior. Use conditions and comparisons to control robot behavior safely.
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 review the sequence, pick up where you left off, or get clear on the unit goals before moving ahead.
Need to skip ahead?
Sign in to mark every lesson in this unit complete, or continue to the next unit without saving.