2. Scratch – Selection

What Is Selection:

Selection is used to make code do different things based on whether a given condition is true or not.

A condition is something that is either
True or False


If Blocks:

Selection in Scratch uses If Blocks to allow the program to do different things based on CONDITIONS. ​


Multiple Conditions:

Multiple conditions can be checked by using additional If blocks.​​

Solution A will work but is inefficient as the computer will check each condition(even if one of the previous ones are already True)​​

Solution B will work and is more efficient because once a condition is found to be true, the computer will stop checking the other conditions.​​

This is better because the weather (in our program) can’t be more than one thing.​ ​