# Conditionals: If-Then > Fifth graders learn conditionals — “if-then” instructions that let programs make decisions — doing one thing when a condition is true, so code can react to… **Computer Science** | **Grade 5** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g5-coding-conditionals.html* Fifth graders learn conditionals — “if-then” instructions that let programs make decisions — doing one thing when a condition is true, so code can react to what’s happening. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Define a **conditional**. - Explain **if-then**. - Match conditions to actions. - Use a conditional. How does a game know to end when you win, or a character know to stop at a wall? Code can make decisions! How do “if-then” conditionals let programs choose what to do? ## Match the If-Then Project this and match each “IF” condition to the “THEN” action — tap an IF, then tap what happens. ## 40 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Code That Decides How does a game know to end when you win? Code can make decisions! #### 👩‍🏫 Teacher Moves - Pose the decision puzzle. - Introduce if-then. - Set the goal. #### 🎒 Student Actions - Consider it. - Meet if-then. - Predict the idea. ### Unplugged — Unplug It Students practice. #### 👩‍🏫 Teacher Moves - Play “If I say X, then you do Y.” - Act out conditions. - Feel the decision. #### 🎒 Student Actions - Play it. - Act it. - Feel it. ### Use — Match If-Then Students use the tool. #### 👩‍🏫 Teacher Moves - Send students to Match the If-Then. - Match each pair. - Note the decisions. #### 🎒 Student Actions - Match them. - Note decisions. - Explain them. ### Modify — Change It Students modify. #### 👩‍🏫 Teacher Moves - Change a condition. - Predict the new action. - Explain the change. #### 🎒 Student Actions - Change it. - Predict it. - Explain it. ### Create — Create Students conclude. #### 👩‍🏫 Teacher Moves - Write an if-then rule. - Explain the decision. - Complete the exit ticket. #### 🎒 Student Actions - Write one. - Explain it. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students. Create programs that use conditionals to express ideas. Create programs using events and control structures. Decompose problems into parts. Computational Thinker. ## One lesson, every learner ### Multilingual Learners - If-then sentence cards. - Sentence frame: “If ___, then ___.” - Act out conditions. ### Support & Access - Start with one clear if-then. - Match one pair at a time. - Use pictures. ### Stretch & Extend - Add an “else” option. - Code a conditional in a game. - Combine conditions. ### What to gather - 📽️Projector / board - 🔀If-then cards - 💻Match the If-Then - 📋Condition strips - ✏️Pencils - 🎫Exit-ticket slips ### Key terms - **conditional**: an if-then instruction - **condition**: something that may be true or false - **if**: the start of a condition - **then**: the action that follows - **decision**: a choice the code makes - **true**: when a condition is met - **false**: when a condition is not met - **event**: something that happens ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: a game rule. Have students write an “if-then” rule for a game they invent — like “if you touch a star, then you score a point.” A printable conditionals sheet is in the Computer Science library. ## Check your understanding **1. What does “conditional” mean?** - the action that follows - an if-then instruction *(correct)* - something that happens - the start of a condition “conditional” means: an if-then instruction **2. Which word means: “something that may be true or false”?** - true - decision - conditional - condition *(correct)* “condition” means: something that may be true or false **3. What does “if” mean?** - the start of a condition *(correct)* - an if-then instruction - something that happens - a choice the code makes “if” means: the start of a condition **4. Which word means: “the action that follows”?** - conditional - false - then *(correct)* - condition “then” means: the action that follows **5. What does “decision” mean?** - something that happens - a choice the code makes *(correct)* - something that may be true or false - when a condition is not met “decision” means: a choice the code makes **6. Which word means: “when a condition is met”?** - true *(correct)* - false - condition - decision “true” means: when a condition is met ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g5-coding-conditionals.html All lessons: https://lessonplans.k12academics.com/