Page 141 - ScienceStd4
P. 141

FOR ONLINE READING ONLY
















                                   Figure 37: Using the if then block


               5.  Click on the ‘Operators’ block menu.

               6.  Drag and drop the ‘greater than’ block on the script area,

                    as shown in Figure 38.

               7.  Insert the ‘greater than’ block into the ‘if () then’ block as
                    shown in Figure 38.





























                         Figure 38: Using the decision structure in a program




                                                   134



                                                                                            14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   134
     SCIENCE AND TECHNOLOGY STD 4.indd   134                                                14/01/2025   18:38
   136   137   138   139   140   141   142   143   144   145   146