# Halloween Conditional Code Worksheet for Elementary

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.

You’ll also enjoy:

### Earth Day Coding Recycling Sorting Activity

Check out this Earth Day coding recycling sorting activity that teaches children how conditional statements and variables work while learning how to recycle common household materials!

## 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.

## 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!

## 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!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This site uses Akismet to reduce spam. Learn how your comment data is processed.