Page 107 - Touchpad_Plus_V3.2_Class 5
P. 107

Using the addition operator

                 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.
                 In the example below, if the comparison is true, the program will go down to the

                 next line of the code and do what is there. If the comparison is false then the code

                 will not execute.
                 The three relational operators are:


                                            Operator                              Example








                              1.  greater than














                              2.  less than











                                                                                               More on Scratch       105
   102   103   104   105   106   107   108   109   110   111   112