Lesson 5
If this happens, then do that
In this lesson, students will learn about conditional statements and how they can be used to program actions to occur throughout their story. They will identify three opportunities within their screenplay where stage directions (or actions) are needed and determine which looks and motion blocks they will use to code these actions into their program. Before returning to their project, they will be introduced to conditional statements and discuss how they can be used to set the exact timing of an action with Boolean operators. As a class, they will work through an example before adding this code to their program.
Learning objective
Students will control the flow of their story with conditionals.
Standards
CSTA Standards
- 1B-AP-09: Create programs that use variables to store and modify data.
- 1B-AP-10: Create programs that include sequences, events, loops, and conditionals
- 1B-AP-11: Decompose (break down) problems into smaller, manageable subproblems to facilitate the program development process.
- 1B-AP-15: Test and debug (identify and fix errors) programs.
Common Core Standards
- CCSS.ELA.W.5.3: Write narratives to develop real or imagined experiences or events using effective technique, descriptive details, and clear event sequences.
- CCSS.ELA.W.5.3.b: Use narrative techniques, such as dialogue, description, and pacing, to develop experiences and events or show the responses of characters to situations.
Multi-lesson projects
Students will use the same project across multiple lessons.
Lesson contents
Want to teach this lesson?
Log in and get access to the full curriculum for free.
Scratch projects
Mystery story
Student resource
Log in to access
Multi-lesson project
Students will use the same project across multiple lessons