Page 82 - 2403_Trackpad_V5.1_C6_Fb
P. 82
CONTROL BLOCKS
Control blocks have looping blocks which are used when the same blocks have to be repeated a
number of times.
Blocks Functions
This block pauses the running of the script for the specified
wait 1 seconds
number of seconds.
repeat 10
This block repeats a set of blocks a given number of times.
repeat until If the condition is false, it runs blocks inside and checks the
condition again. If the condition is true, it goes on to the
blocks that follow.
forever This block keeps on repeating a set of blocks until the stop
button is clicked. It is similar to a repeat block and expands
automatically to accommodate the blocks you snap inside it.
OPERATORS BLOCKS
Scratch allows us to perform arithmetic and logical operations. It provides this feature through
Operators blocks. These blocks are light-green in colour.
Arithmetic Operators
Scratch has four operators that allow you to do arithmetic calculations. These are addition,
subtraction, multiplication, and division.
Blocks Functions
+ This block adds two numbers.
– This block subtracts two numbers.
* This block multiply two numbers.
/ This block divides two numbers.
80 Premium Edition-VI

