Page 155 - ScienceStd4
P. 155

19. Click on the ‘Control’ block menu.

               20. Drag and drop the ‘if then’ block into the script area. Then,

                    connect it inside the ‘forever’ block, as shown in Figure
                    60.
          FOR ONLINE READING ONLY



































                       Figure 60: The ‘if then’ block is connected for the second time
               21. Click on the ‘Sensing’ block menu.


               22. Drag and drop the ‘key pressed’ block into the script area.
                    Then insert it inside the ‘if then’ block, and choose ‘right

                    arrow’ as shown in Figure 61.



















                                                   148



                                                                                            14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   148
     SCIENCE AND TECHNOLOGY STD 4.indd   148                                                14/01/2025   18:38
   150   151   152   153   154   155   156   157   158   159   160