Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 82 - 2612_Digimind
P. 82

    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.

                       80   Premium Edition-IV

| 77 78 79 80 81 82 83 84 85 86 87 |