Use Conditional Logic
Lesson Objective
Recognize simple patterns and use conditional logic and loops to solve.
Concepts Learned
 Conditional Loops
 Conditional Logic
 Sequenced Repetition
 Negative Logic
Code Blocks Introduced
{"func":"registerFlagTrigger"}
On Start
{"func":"blockControlRepeatUntil","values":[{"type":"boolean", "value":"false"}]}
Repeat Until
{"func":"blockControlWhile","values":[{"type":"boolean", "value":"false"}]}
Repeat While
{"func":"valueOpNot","values":[{"type":"boolean","value":"false"}]}
Not
5 Programming Activities

1. Using Conditional Loops
Use a conditional loop to get to the mint.

2. Using Conditional Loops
Use a conditional loop to get to the jelly bean.

3. Using "Not"
Use negative logic with the "Not" block and get to the gum drop.

4. Using "Not" in Loops
Use negative logic inside a loop and get to the gum drop.

5. Conditionals
Use simple conditionals and a loop to get to the red mint.
Instructor Notes
 These puzzles introduce the students to conditional loops using the "repeat until" and "repeat while" blocks.
 Get introduced to negative logic using the "not" block.
 Coding concepts covered are: sequencing, conditional loops and negative logic blocks.