Page 63 - IT_V5.0_Class6
P. 63

Operator Blocks

                 Operator  blocks in Scratch  are  used for  performing  mathematical  calculations,  making
                 comparisons, and handling text (referred to as strings). They allow tasks such as adding numbers,
                 evaluating conditions, or modifying text within a project. Operator blocks and their functions are
                 as follows:

                  Block                                 Explanation


                                                        It adds two numbers.


                                                        It subtracts the second number from the first number.



                                                        It multiplies two numbers.



                                                        It divides the first number by the second number.


                                                        It picks a random number between the specified range.


                                                        It checks if the first number is greater than the second
                                                        number.

                                                        It  checks  if  the  first  number  is  less  than  the  second
                                                        number.

                                                        It checks if the first number is equal to the second number.



                                                        It checks if both conditions are true.



                                                        It checks if at least one of the conditions is true.


                                                        It checks if the condition is not true.



                                                        It joins two strings together.

                                                        It reports the remainder of the division of the first number
                                                        by the second number.


                                                        It rounds the number to the nearest integer.


                                                        It reports the absolute value, floor, ceiling, square root,
                                                        sine, cosine, tangent, etc., of the number.





                                                                                              Learning Scratch   61
   58   59   60   61   62   63   64   65   66   67   68