Learn If Then code with a Halloween conditional code worksheet for elementary by pairing outfits & conditional statements to help a witch pick clothes!
The unplugged coding worksheet is designed for kids in elementary school to complete independently, but it can also be used by early readers or read to younger children.
This post contains affiliate links. As an Amazon Associate, Our Family Code earns from qualifying purchases. Please see our Disclosure Policy for more details.
Favorite Worksheet Supplies
Check out our most used worksheet supplies and grab them today!
How to Teach Conditional Code to Kids
A condition is something that is tested that is either true or false. Conditional code is the block of code that will run only if a condition is true.
Without even knowing it, you probably spend a lot of your day making decisions that rely on boolean logic or questions that can only be either true or false.
How do Computers use Conditional Code?
In order for computers to run programs, the computer programmer must tell the computer what the possible outcomes are for the condition. In the raining example, the Boolean is true “if it is raining” and false “if it is not raining.”
If the rule is not met, the computer follows a different set of instructions or an exception to the rule. This is called a condition. A condition is an exception to a rule.
Teaching kids to recognize conditional statements within their daily decision-making process helps them to innately understand the If code statements that are used when programming a computer or a robot to adhere to conditionals in coding.
See the graphic below for a visual representation of how a condition works!
This activity primarily focuses on teaching K-3 kids the If Then code construct. Once students have a handle on if statements, they can learn about an else clause. The else clause is a different action that a computer would run when the condition is not met, is FALSE, in the IF statement.
If it is raining then I wear my rain boots, else I wear sneakers.
Witch Wardrobe Conditional Code Worksheet
Learn about conditional statements with a Witch Wardrobe If-Then Halloween coding activity that emphasizes If-Then statements with relatable situations for elementary age kids!
The unplugged coding worksheet is designed for kids in elementary school to complete independently, but it can also be used by early readers or read to younger children.
What is Scratch Coding?
Scratch is a free computer programming language available at https://scratch.mit.edu launched in May 2007. Scratch can be used to create a variety of interactive projects, including animations, stories, games, and so much more!
Witch Wardrobe If-Then Conditional Statements
This unplugged coding worksheet can be paired with this Scratch project to teach children foundational IF…THEN statements with a visual example.
The Scratch project is pre-built and ready to use as is or it can be programmed by more experienced kid coders or as a classroom demonstration.
Witch Wardrobe Scratch Coding Activity
Glenda will ask users what day of the week it is. When Glenda receives, her answer, she will get dressed in the matching socks/shoes depending on the specific day.
IF it is Monday, THEN Glenda wears striped socks.
IF it is Tuesday, THEN Glenda wears socks with spiders.
IF it is Wednesday, THEN Glenda wears shoes with buckles.
IF it is Thursday, THEN Glenda wears shoes with bows.
IF it is Friday, THEN Glenda wears socks with stars.
IF it is Saturday, THEN Glenda wears socks with polka dots.
IF it is Sunday, THEN Glenda wears shoes with shoelaces.
Please note: If you receive an error, check the spelling of the day of the week.
The activity can be adjusted by more advanced users to change the amount of loops or even the conditions themselves. Maybe Glenda wants to change things up. How would you rewrite the conditions?
The activity can be recreated by more advanced users, but was designed to demonstrate conditional statements to K-3 students with little coding experience.
This project is designed and created by OurFamilyCode and is designed for personal or educational use only. You can find the Scratch Coding Project on the OurFamilyCode Scratch Studio!
Solve the Halloween Conditional Code Worksheet
You can use the Scratch coding activity to solve the worksheet as a group or the answer key provided if using this worksheet as an unplugged coding activity.
Click here to download the Witch Wardrobe unplugged coding worksheet to introduce conditional code with some Halloween fun!
Find more Screen-Free Coding Activities from Our Family Code!
We believe that children should be introduced to algorithmic thinking as early as possible! Many of our unplugged coding resources are ideal for kids in preschool through 5th grade with a few resources for integrating computer science and other STEAM disciplines for middle school children.
Unplugged Coding Activities
Find more Elementary unplugged coding activities to work on basic coding skills!
Bitmap Coding Unplugged Coding Activity for Kids
Introduce algorithms with this hands-on unplugged coding activity for kids!
Teach Kids Binary Code with this 5-bit Binary Code Challenge
Teach kids binary code by exploring the binary number system, translate letters and numbers to binary code, convert binary code to text, decode a binary code message with the ASCII binary code alphabet, and grab a free binary code workbook for kids!
Fitness Coding Card Game: Unplugged Coding Activity
Are you ready to play the Fitness Code! This Fitness coding game teaches kids coding concepts, including conditionals and variables. This activity focuses on remaking the way we traditionally teach these concepts and uses large motor movements to reinforce the activity and make it a tangible, fun learning experience!
Earth Day Coding Recycling Sorting Activity
This Earth Day coding recycling sorting activity teaches children how conditional statements work while learning how to sort recyclables!
How to Code a Lion Directed Drawing Algorithm Art
Can you follow the algorithm and draw a lion in this directed drawing unplugged coding + art activity?
Pi Necklace Coding Unplugged Coding Activity
We love to pair math and technology to create fun art! This Pi Necklace coding activity is the perfect combination of math, binary, and hexadecimal coding for upper elementary and middle school students. It’s also an engaging Pi Day activity!
Guess the Animal Unplugged Boolean Coding Activity
Learn about boolean and comparison operators with this Guess the Animal boolean coding activity!
Layers of the Rainforest Unplugged Coding Activity
Explore the layers of the rainforest and code the correct animals to each layer using logical reasoning!
Rocket Ship Decomposition Unplugged Coding Activity
This rocket ship decomposition unplugged coding activity is designed to teach kids the concept of decompositions and algorithms!
Ahoy Algorithms Treasure Hunt Unplugged Coding Activity
Pair this pirate algorithm activity with the Magic Tree House! Use your coding skills to find the treasure in this treasure hunt unplugged coding activity!
Introduce Computer Programming with this Elementary Coding Activity
This elementary coding activity is a great introduction to the basics of computer programming and is ideal as a classroom coding resource or homeschool resource for kids in Kindergarten through 5th grade. Teach kids to code!
How to Code a Volcano
Learn about variables, sequences, algorithms, and loops and code a volcano!
Meet Toni, the Maker Mom behind Our Family Code
Hey there, I’m Toni! I’m a software engineer and Maker Mom that finds my joy in unleashing my children’s curiosity by exploring STEAM concepts with my fantastic five!
When I’m not chasing toddlers or raising tweens, you can find me tearing things up and putting them back together over here at Our Family Code.
I am the owner and content creator of multiple educational websites designed to increase access to STEAM & STEM education with a focus on teaching computer science and coding to kids of all ages!
You can also find out more about me by visiting ToniGardner.com!