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:
- Conditional Statement
- If Block
- If-Else Block
- Boolean Expression
- Comparison Operator
- Logical And
- Logical Or
- Logical Not
- Decision Logic
- Condition Testing
- True Or False Value
- Nested Conditional
- Branching Logic
- Wait Until Block
Prerequisites
This chapter builds on concepts from:
- Chapter 2: The Scratch Interface & Environment
- Chapter 3: Sequencing & Scripts
- Chapter 5: Loops & Repetition
TODO: Generate Chapter Content