In this lesson, learners will develop their understanding of selection by using the ‘if… then… else...’ structure in algorithms and programs. They will revisit the need to use repetition in selection to ensure that conditions are repeatedly checked. They identify the two outcomes in given programs and how the condition informs which outcome will be selected. Learners use this knowledge to write their own programs that use selection with two outcomes.
To relate that a conditional statement connects a condition to an outcome
- I can use selection in an infinite loop to check a condition
- I can identify the condition and outcomes in an 'if... then… else...' statement
- I can create a program with different outcomes using selection