This lesson will build on the previous lesson by introducing the use of logical and comparison operators to use in selection statements. The learners will start by following Scratch code and working out what the program will output given different inputs. They will be introduced to logical and comparison operators before taking part in an activity where they are given a playing card and have to decode if it evaluates to ‘true’ or ‘false’ using various different expressions. The learners will then build a ‘Brain game’ Scratch program by adding new questions to subroutines.
- Create conditions that use comparison operators (>,<,=)
- Create conditions that use logic operators (and/or/not)
- Identify where selection statements can be used in a program that include comparison and logical operators