Computer Science Grade 1 20 min

If You Clean Up, Then...

Understanding the consequence of cleaning up (a tidy space).

Tutorial Preview

1

Introduction & Learning Objectives

Learning Objectives Identify the 'if' part (condition) in a simple rule. Identify the 'then' part (action) in a simple rule. Explain that an 'if...then...' statement connects a condition to an action. Follow a one-step 'if...then...' instruction to complete a task. Create their own simple 'if...then...' rule using familiar objects. Predict the outcome of a simple 'if...then...' scenario. What happens IF it starts raining outside? ๐ŸŒง๏ธ THEN you get your umbrella! โ˜‚๏ธ We are going to learn about special rules called 'If...Then...' rules. These rules help us, and computers, make smart choices. They tell us what to do next! Real-World Applications If the light is red, then we stop. If you are hungry, then...
2

Key Concepts & Vocabulary

TermDefinitionExample If...Then... RuleA special rule that tells you what to do. It has two parts.IF you see a green block, THEN stack it on the tower. Condition (The 'If' Part)The first part of the rule. It's a question that is either true or not true.In the rule 'IF the banana is yellow...', the condition is 'the banana is yellow'. Action (The 'Then' Part)The second part of the rule. It's the job you do if the 'if' part is true.In the rule '...THEN eat it', the action is 'eat it'. TrueWhen the 'if' part is happening right now. It means 'yes'. ๐Ÿ‘The light IS red. So, 'if the light is red' is true. Not True (False)When the 'if' part is not happening. It means 'no&#0...
3

Core Syntax & Patterns

The If...Then... Pattern IF [a condition is true], THEN [do an action]. Use this pattern to make a decision. First, check the 'if' part. If it's true, do the 'then' part. The Do Nothing Pattern IF [a condition is not true], THEN [do nothing]. If the 'if' part is not true, you just wait. You do not do the action.

4 more steps in this tutorial

Sign up free to access the complete tutorial with worked examples and practice.

Sign Up Free to Continue

Sample Practice Questions

Challenging
Mom's rule: 'If you put away your cars AND your blocks, then we can bake cookies ๐Ÿช.' You only put away the cars. Can you bake cookies yet?
A.Yes, because you put away the cars
B.Yes, because you cleaned up something
C.No, you still need to put away the blocks
D.No, because it's too late to bake
Challenging
The rule is: 'If you press the green button, then the toy robot sings.' You press the green button, but the robot does nothing. What is the MOST likely problem?
A.You pressed the wrong button
B.The robot doesn't like the song
C.The rule is wrong
D.The robot's batteries might be dead
Challenging
Your room is messy. You want to earn time to play a video game. Which is the BEST 'If...Then...' rule to ask your parents for?
A.If I play a video game, then I will clean my room.
B.If I clean my whole room, then can I play a video game for 30 minutes?
C.If my room is messy, then I can play a video game.
D.If I can play a video game, then my room is clean.

Want to practice and check your answers?

Sign up to access all questions with instant feedback, explanations, and progress tracking.

Start Practicing Free

More from If...Then...: Simple Conditional Statements

Ready to find your learning gaps?

Take a free diagnostic test and get a personalized learning plan in minutes.