Page 70 - 2617_JSSPS_C-7
P. 70

4.   Text Blocks: These blocks are used to work with words and characters. You can join, split, change
                 and compare text. For example,


                                     This string can contain any characters (letters, numbers or other special characters).
                                     On App Inventor it will be considered a Text object.



                           join      Appends all of the inputs to make a single string. If there are no inputs, it returns
                                     an empty string.


              5.  Lists Blocks: These blocks help you store and manage collections of items. You can add, remove or
                 find items in a list. For example,



                            create empty list    Creates an empty list with no element.




                             length of list  list  Returns the number of items in the list.



              6.  Dictionaries Blocks: These blocks store data in key-value pairs. They help you organise and access
                 information using labels. For example,




                         create empty dictionary  This block creates a dictionary without any key-value pairs.




                           remove entry for key  This block removes the key-value mapping in the dictionary for the
                              from dictionary   given key.



              7.  Colors Blocks: These blocks allow you to pick and use colours in your app. You can set background
                 colours or text colours using these. For example,



                                                This basic colour block is a small square block that shows a specific
                                                colour in the middle, representing the colour stored inside it.




                    make color  make a list  255  This block takes in a list of 3 or 4 numbers. These numbers in this list
                                        0
                                        0       represent values in an RGB code.















                        Premium Edition-VII
                 68
   65   66   67   68   69   70   71   72   73   74   75