Page 70 - Touchcode_C6_Flipbook
P. 70

Step 9:       Drag the 'Height' variable to workspace area, and then drop the 'Height' variable to 'If'
                             block. Now, Change the comparison operator to '='and the value to '6'.




















                   Step 10:   When you click on 'on start' block, the program runs and display 'orange' color in the

                             background. (As the value of 'height' is '10' in the 'set Height to' block, now the value is

                             6 and is not equal to 10, so 'If' block will run and  'orange' colour will get displayed as an
                             ouput.)
























                   Step 11:   Change the value of 'Height' in 'if-block' to 10. Now, the value is equal to 10, so the
                             output will be 'pink' colour.
























                   68     Touchcode-VI
   65   66   67   68   69   70   71   72   73   74   75