Skip to content

Conditionals & Logic

Summary

This chapter covers Boolean expressions, comparison operators, and the logical and, or, and not operators, then applies them through if and if-else blocks to branch a script's behavior. Students learn to test conditions, nest conditionals, and use the wait until block to pause a script until a condition becomes true. It builds on the editor and scripting skills from Chapter 2, the sequencing concepts from Chapter 3, and the loop concepts from Chapter 5. After completing this chapter, students will be able to write scripts that make decisions and branch based on true or false conditions.

Concepts Covered

This chapter covers the following 14 concepts from the learning graph:

  1. Conditional Statement
  2. If Block
  3. If-Else Block
  4. Boolean Expression
  5. Comparison Operator
  6. Logical And
  7. Logical Or
  8. Logical Not
  9. Decision Logic
  10. Condition Testing
  11. True Or False Value
  12. Nested Conditional
  13. Branching Logic
  14. Wait Until Block

Prerequisites

This chapter builds on concepts from:


TODO: Generate Chapter Content