Mikelgiles Active Member Licensed User Longtime User Oct 14, 2020 #1 Where would I find a good explanation of what the Keyword Continue does? I find it used mostly in a for next loop but not always. I guess mu problem is that I am not totally sure what a iteration is.
Where would I find a good explanation of what the Keyword Continue does? I find it used mostly in a for next loop but not always. I guess mu problem is that I am not totally sure what a iteration is.
EnriqueGonzalez Expert Licensed User Longtime User Oct 14, 2020 #2 have you found it outside of For, for each, do while and do until blocks? it should be used only on those blocks. Upvote 0
have you found it outside of For, for each, do while and do until blocks? it should be used only on those blocks.
stevel05 Expert Licensed User Longtime User Oct 14, 2020 #3 B4X: Copy For i = 0 to 10 if i < 5 Then Continue Log(i) Next Simple example, each time the loop goes round is an iteration. The continue keyword stops the current iteration and starts the next. So in this case i will be incremented and the code will continue from the start of the loop. Upvote 0
B4X: Copy For i = 0 to 10 if i < 5 Then Continue Log(i) Next Simple example, each time the loop goes round is an iteration. The continue keyword stops the current iteration and starts the next. So in this case i will be incremented and the code will continue from the start of the loop.