Page 125 - 2611_SmartGPT Pro V(5.0) C-5
P. 125

2.  Logic Blocks: These blocks allow you to make decisions using true/false values. You can
                     compare values and use logical operations like AND, OR and NOT. Example:



                            Blocks                                          Functions



                                                 Represents  the  constant  value  true.  It  is  used  to  set  the

                              true              Boolean  properties  of components  or assign  a condition
                                                 value to a variable.


                                                Represents  the constant  value false. It is used  to  set  the
                              false             Boolean properties of components or assign a variable to
                                                represent a condition.


                 3.   Math Blocks: These blocks perform basic and advanced mathematical calculations. You
                     can add, subtract, multiply, divide and more. Example:



                            Blocks                                          Functions



                                                 This block  lets  you  display  numbers  in decimal  form and
                                                can also show them  in other  formats, such as binary  or
                           decimal   0
                                                 hexadecimal.


                                                This block compares two values to check if one is greater
                               =
                                                than, less than or equal to the other.



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



                            Blocks                                          Functions


                                                 This string  can contain  any  characters  (letters,  numbers

                                                or other special  characters).  On  App  Inventor  it  will be
                                                 considered a Text object.


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







                                                                                 Creating Apps with MIT App Inventor  123
   120   121   122   123   124   125   126   127   128   129   130