Introduction to programming in Scratch
In this lesson you'll learn how to write an 'if then statement' in programming with Scratch. These are known as conditional statements. Actions are then carried out based on whether something is true or false.
A conditional statement tells a program to execute different actions depending on whether a condition is true or false
Take this short quiz to see if you can predict the outcome of the following if then statements. Click here to try
In authentic contexts and taking account of end-users, students decompose problems to create simple algorithms using the three building blocks of programing: sequence, selection, and iteration. They implement these algorithms by creating programs that use inputs, outputs, sequence, basic selection using comparative operators, and iteration. They debug simple algorithms and programs by identifying when things go wrong with their instructions and correcting them, and they are able to explain why things went wrong and how they fixed them.