Presentation is loading. Please wait.

Presentation is loading. Please wait.

the captured notes and redid - hopefully it all works.

Similar presentations


Presentation on theme: "the captured notes and redid - hopefully it all works."— Presentation transcript:

1 the captured notes and redid - hopefully it all works.

2

3 shows the variable name.

4

5 4 4

6 4 4 reset to 1 since drop down When the for is looped back to it is incremented and checked to see if it should be executed again When I loop back to the outer for and drop through to the inner for, I reset. Hitting by looping causes it to increment. Hitting by drop down causes it to reset to the start.

7 set the starting point check the conditon I am changing by incrementing $ct

8 condition process increment using $ct++

9 Since $ct is set to 5, I never enter the loop
Since $ct is set to 5, I never enter the loop. I am checking prior to entering and if I meet the condition I enter the loop, if I do not meet the condition, I do not enter the loop.

10 With the do, I enter the loop and process and at the bottom I reach the while with the condition which determines whether I do the loop again. loop processsing condition

11 this mimics the for loop
increment inside the appropriate loops

12

13 Done once since the check is after the initial execution of the loop.

14 This shows an alternate structure using the endwhile to end the while loop.


Download ppt "the captured notes and redid - hopefully it all works."

Similar presentations


Ads by Google