Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 97 - 2607_Trackpad_Pro_5.1_flipbook_C4
P. 97

    Blocks                                         Functions

                                                          This block  pauses  the  running of the  script  for the
                               wait  1  seconds
                                                          number of seconds.

                               if        then             This block executes a set of actions only if a specific
                                                          condition is true. It checks the condition and runs the
                                                          included blocks when the condition holds.

                                                          This block allows the program to perform one action
                                if       then
                                                          if a condition is true and another action if it is false. It

                                else                      checks the condition, executing the first set of blocks if
                                                          true, and a different set if false, providing a clear choice
                                                          between two paths.

                                repeat  10
                                                          This block repeats a set of blocks for a given number of
                                                          times.

                                                          This block  keeps  on repeating  a set  of blocks till  the
                               forever
                                                          stop button is clicked. It is similar to repeat block and
                                                          expands  automatically  to  accommodate  the  blocks

                                                          you snap inside it.

                             uiz   Bee        Which block category instructs the sprite to play music?
                                              ______________________________________________________

                               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.

                                                                                                     Blocks in Scratch  95

| 92 93 94 95 96 97 98 99 100 101 102 |