Activity

Coding a Catching Apples Game – Introducing Conditional Code

Overview
Grades 5-8
60 min
Topics
Computer Science
Status

In computer science, conditional code statements are statements that tell the computer what to do based on whether a condition is true or false. During this activity, you will explore if/then statements by coding a game of Catching Apples! At the end of the activity, grab your family and friends to play a game that demonstrates if/then statements.

For this activity, please use a desktop or laptop computer. Mobile devices are not supported.


  1. Click the Launch button below.
  2. Watch the videos and code along in Scratch!
  3. When you’re done, come back here and scroll down to the Mark Complete button. Click it to get your pins & points!

This activity is not supported on mobile devices.

Did you enjoy this activity?

No endorsement by 4-H is implied or intended. 4-H is the youth development program for our nation’s cooperative extension system. Sam Hostman, CLOVER Scratch Specialist, is not affiliated with the University of Georgia or Google in any capacity. Any reference to these entities should not be interpreted as an association.