Page 107 - 2611_SmartGPT Pro V(5.0) C-4
P. 107
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.
ARITHMETIC OPERATORS
Scratch has four operators that allow you to do arithmetic calculations. These are addition,
subtraction, multiplication and division.
Operator Meaning Examples
when clicked
+ Addition say The sum of 100 + 50 is for 2 seconds
say 100 + 50
when clicked
– Subtraction say The Difference between 100 and 50 is for 2 seconds
say 100 – 50
when clicked
* Multiplication say The Product of 10 and 20 is for 2 seconds
say 10 * 20
when clicked
/ Division say The Answer of 200/10 is for 2 seconds
say 200 / 10
COMPARISON/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.
Comparison operators are used with the if... then block.
Blocks in Scratch 105

