Page 114 - Touchpad_Plus_V3.2_Class 5
P. 114

The  Repeat and  Repeat Until blocks can be used to display the table of a

                  number input by the user. The script for the sprite can be like this (using Repeat
                  Until block).




























                                                        Example of a looped script


















                                                                 Output
                         Restart



                          Operators Blocks are used to do arithmetic and logical calculations.
                         Variables are the data values for which the value can be changed when the
                         code is being processed.

                         The blocks in the Sensing category help the selected sprite to detect the
                         presence of other sprites or other elements on the stage including the
                         edges of the stage.
                         The Repeat block is used to run a set of instructions for a specified number

                         of times.
                         The Repeat Until block is used to run a set of instructions till a condition is
                         satisfied.




               112      Plus (Ver. 3.2)-V
   109   110   111   112   113   114   115   116   117   118   119