Page 57 - Touchcode_C6_Flipbook
P. 57

Step 2:   Click on 'Variables', select 'Make a Variable', write the name of the variable as
                            'Height', then click on 'OK'. Variable 'Height' will appear in 'Make a Variable…'.


















                  Step 3:   Drag the 'Set Height' to 10 the workspace area and drop it to the 'On Start' block
                            as shown below.














                  Step 4:   Choose the 'if..else' block from the 'Logic' section, drag it to 'on start' block, and
                            drop the block below the 'set Height to' block.















                  Step 5:   Choose a Boolean AND operator from the 'Logic' section. Add the 'AND' operator

                            block to the 'if-else' block.



















                                                                                     Control with Conditionals   55
   52   53   54   55   56   57   58   59   60   61   62