Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - 2609_Logicode
P. 109

    When you run the project, the following output displays the first iteration of the repeat loop.

                     Now, click on the A button in the Game Controls to view the output of further iteration of the while
                     loop. Notice that, when the index value is 4, the loop breaks and stops executing further.

                     CONTINUE

                     The  continue  statement  forces  the  next  iteration  of  the  loop  to  execute  and  skips  the  line  of
                     code within the loop. While executing a program, if the program control encounters a continue
                     statement, the execution of the remaining statements inside the loop are skipped for the current

                                                                                           Advanced MakeCode Arcade   107

| 104 105 106 107 108 109 110 111 112 113 114 |