Page 77 - 2606_PlugGPT_C4_Flipbook
P. 77

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.



                          If          then            This block allows the program to perform one action
                                                      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  75
   72   73   74   75   76   77   78   79   80   81   82