Page 68 - CloudGPT_C8_Flipbook
P. 68

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' block, now the value is 6

                             and is not equal to 10, so 'If' block will run and  'orange' color 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' color.
























                   66     Premium Edition-VIII
   63   64   65   66   67   68   69   70   71   72   73