# Practice Drills Set 3: Variables & Logical Operators > Trace multi-variable loops, variable swaps, and AND/OR/NOT truth tables. Practice Drills Set 3: Variables & Logical Operators — Scratch Daizen English Textbook. Trace multi-variable loops, variable swaps, and AND/OR/NOT truth tables. ## Lesson goal & core concept Use paper trace tables to solve complex variable updates cleanly. Write one row per loop iteration: i | sum | condition. ## Step-by-step practice Work through these steps in the Scratch editor, predicting each result before clicking the green flag. - Trace summing odd numbers from 1 to 5: 1 + 3 + 5 = 9. - Trace swapping A=5 and B=9 using temp: temp=5, A=9, B=5. - Evaluate <<(80 > 79)> and <(0 = 0)>> → TRUE. ## Mini challenge & next steps Modify the odd-number sum loop to add only even numbers from 2 to 10. - [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/drills-03/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)