- :-

Topics Covered

  • Expanding Remote Control
  • Adding Driving Assistance
  • Lesson Links

    Check Your Understanding:
    1. 1. What does the If/Else Conditional Block allow you to do?
    2. It allows you to end the program immediately.
      It allows you to run one set of commands if a condition is met, or a second set of commands if a condition is not met.
      It allows you to trace through your program execution.
      It allows your program to repeat forever.
    3. 2. True or False: When the robot reaches an If/Else Conditional Block it makes a decision.
    4. True
      False
    5. 3. True or False: The else branch of an If/Else Conditional Block gets its own condition.
    6. True
      False
    7. 4. When does the code under the if branch of the If/Else Conditional Block run? When does the code under the else branch run?
    8. Code under the if branch runs when the condition is false. Code under the else runs when the condition is true.
      Code under the if branch runs when the condition is true. Code under the else runs when the condition is false.
      Code under the if branch runs when the condition is true. Code under the else always runs.
      Neither set of code ever run. The condition for the If/Else Conditional Block cannot be met.
    Try It!
    Try it! 1

    LED Feedback

    Program the Touch LED to output yellow when the robot is moving forward based on the VEX IQ Controller button press, and blue when the robot is being driven by the VEX IQ Controller joysticks. Try it!