Page 96 - trackpad v5.1 class 4 flipbook
P. 96
Blocks Functions
This block pauses the running of the script for the
wait 1 seconds
number of seconds.
If then This block executes a set of actions only if a specific
condition is true. It checks the condition and runs the
included blocks when the condition holds.
If then This block allows the program to perform one action
if a condition is true and another action if it is false. It
else checks the condition, executing the first set of blocks if
true, and a different set if false, providing a clear choice
between two paths.
repeat 10
This block repeats a set of blocks for a given number of
times.
This block keeps on repeating a set of blocks till the
forever
stop button is clicked. It is similar to repeat block and
expands automatically to accommodate the blocks
you snap inside it.
uiz Bee Which block category instructs the sprite to play music?
______________________________________________________
OPERATORS BLOCK
Scratch allows us to perform arithmetic and logical operations. It provides this feature
through Operators block. These blocks are light-green in colour.
94 Pro (V5.1)-IV

