Page 58 - ModularV1.1 _c5_flipbook
P. 58
OPERATORS
These blocks are colour-coded as light-green. Operators Blocks are used to do
arithmetic and logical calculations. Blocks in the Operators category are oval and
hexagonal in shape.
Arithmetic Operators
Scratch has four operators that allow you to do arithmetic calculations. These are
addition, subtraction, multiplication and division. Look at the code to use addition
block.
Addition
Similarly, you can use the other blocks to perform subtraction , multiplication
and division .
Relational Operators
Scratch has three operators that allow you to compare the relationship between
two values or variables. It will compare two numbers and decide whether it is true
or false.
56 Modular (Ver. 1.1)-V

