If-Then Logic

Updated on August 8, 2026

diy with cody in coding

If-Then Logic Worksheet for Kids: Free Coding Activity

Show children how computers make decisions using simple conditions. This worksheet introduces the structure of if-then statements through fill-in-the-blank logic problems. Learners examine a condition, predict the correct outcome and complete the rule in a way that makes sense.

Why this worksheet helps

The activity supports conditional thinking, sequencing, prediction and computational reasoning. Because the task is short, visual and easy to print, it can be used as independent practice, a lesson warm-up, homework or a screen-free learning break. Children can work at their own pace and revisit any question that needs more thought.

How to use this printable activity

Read each statement aloud and test it with a real-life example, such as: if it is raining, then take an umbrella. Children can finish by writing one if-then rule for a game, classroom routine or daily activity. Keep the focus on explaining the thinking process rather than finishing quickly. A short conversation after the activity can help children notice strategies they can reuse in future questions.

Download and explore more worksheets

Download the free if-then logic worksheet for kids and print it for use at home, in the classroom or during a learning club session. Browse the complete collection of free worksheets for kids. For related practice, try our coding quiz for kids, binary code worksheet for kids and greater than and less than worksheet.

Share with your friends

Try a free lesson