Users Manual

CLASS 2
14
Practice Using Conditional
Sentences and Loop
Now, your program does not check if the spacebar is pressed or if it was pressed again. What we are trying to do
now is make the program continueously check if the space bar is pressed.
‘If or else’ and infinite repetition
Repeat infinitely
Check again
Start the
Program
Yes
Yes
Is the spacebar
pressed?
Is the spacebar
pressed?
No
No
Turn off the
motor
Turn off the
motor
Turn on the
motor
Turn on the
motor