Page 102 - KEC Khaitan C4 Flipbook
P. 102

Logical or                when    clicked

                            or            The result is              if    100  > 50    or    100  > 200   then
                                          true, if one of the         say 100 is either greater than 50 or 200
                                          statements is true.


                                          Logical not

                                          Reverses the              when    clicked
                                          condition, i.e. it’s             not
                         not                                         if           50  > 100   then
                                          false if the condition

                                          is true and vice-           say Reverses the condition
                                          versa.




                            SENSING BLOCKS

                  In previous class, you learned how Sensing blocks detect user actions, such as mouse clicks

                  and key presses. These blocks are essential for creating interactive games. Some of the
                  important Sensing blocks are:




                          Blocks                                            Functions


                                            It checks if the mouse button is currently pressed down. It returns
                                            true if the mouse button is held down and false otherwise.


                                           It checks if the mouse button is currently pressed down. It returns
                                           true if the mouse button is held down and false otherwise.


                  Create the following script to hear your cat meow:

























                  100   Premium Edition-IV
   97   98   99   100   101   102   103   104   105   106   107