Page 83 - Trackpad_V1_Book 4_Flipbook
P. 83
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 OPERATIONS
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.
Operator Meaning Examples
when clicked
> 50 Greater than if 100 > 50 then
say 100 is greater than 50
when clicked
> 50 Less than if 50 < 100 then
say 50 is less than 100
when clicked
= 50 Equals to if 50 = 50 then
say Both the numbers are equal
Blocks in Scratch 81

