Conditionals

Important to Note:

Using programs that have button presses as events inside the program can become confusing. To run a program, you need to press the ‘play’ (triangle) button once. This initial press ONLY starts the program – it will not be considered a button press inside of the program [2 p. 96].

Teacher Note

The syntax of EdScratch uses ‘until’ rather than ‘while’ (which is common in many general-purpose coding languages), but the code structure performs the same conditional function. If you are teaching EdScratch along with another language that uses ‘while’ conditionals, you may want to explain this connection to students, noting that there is no functional difference between ‘while condition = true’ and ‘until condition = false’. Example: (while x < 4) is the same as (until x = 4). In both cases, the condition breaks when x = 4 [2 p. 96].