Download presentation
Presentation is loading. Please wait.
Published byPer Eskil Karlsen Modified over 6 years ago
1
the captured notes and redid - hopefully it all works.
3
shows the variable name.
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
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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.