Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 110 - 2609_Logiccode
P. 110

    Boolean:  These blocks are used to combine or invert conditions. These blocks represent
                         true/false values and are often used in conditions. They can be used to set or test boolean
                         variables.

                                Block                       Name                             Description

                                                                               Return true if both  the conditions  are
                                                   logical and
                                                                               true.

                                                   logical or                  Return true if any of the conditions is true.

                                                                               Return true if the condition is false and
                                                   logical not
                                                                               vice-versa.

                                                   boolean true                Set the value as true.

                                                   boolean false               Set the value as false.

                      Let us create a project to display a message if a number is positive.

                                                                                                  3  Drag the set to block
                                                                                                 and drop it inside the on
                                                                                                 start block.

                                                                                                  4  Type 6 in the value
                                                                                                 box of the set to block
                                                                                                 to set the value of the
                                                                                                 num variable to 6.
                           1  Click on the
                          Variables blocks                                                        2  Create a variable
                          category.                                                              named num.

                      108   Premium Edition-VII

| 105 106 107 108 109 110 111 112 113 114 115 |