# Chapter 10: Logical Operators (AND, OR, NOT) > Combine multiple conditions cleanly to handle ranges, dual controls (WASD + Arrows), and key-release waits. Chapter 10: Logical Operators (AND, OR, NOT) — Scratch Daizen English Textbook. Combine multiple conditions cleanly to handle ranges, dual controls (WASD + Arrows), and key-release waits. ## Lesson goal & core concept Build compound rules without messy nested "if" blocks. AND needs both sides true; OR needs at least one side true; NOT flips true to false and false to true. ## Step-by-step practice Work through these steps in the Scratch editor, predicting each result before clicking the green flag. - Use OR to accept both Right Arrow and D key. - Use AND to check both touching Door AND has_key = 1. - Use NOT inside "wait until >" to prevent spam jumps. - Evaluate inner hexagons first when reading nested logic. **Chapter 10: Logical Operators (AND, OR, NOT) — Example** - When green flag clicked - Forever - If < or > then - Change x by (6) Try it: Supports both arrow keys and WASD seamlessly. ## Mini challenge & next steps Create an S-Rank check requiring BOTH score >= 100 AND misses = 0. - [Scratch Learning Textbook Home](/en/textbook/): Return to the full 4-stage curriculum overview. - [Scratch Block Dictionary](/en/dictionary/): Look up any block used in this chapter. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/textbook/ch10-logic/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)