Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Count of a nested loop not resetted


OK I noticed something and I do not really know if it is a normal behavior. So if I have a nested loop like this:

With a the first loop:

And the second one:

Well the issue is that I was thinking that everytime the second loop stops and come to an end, the counter count_new_sequence would be initialized again to 0. But apparently it just increments as if the second loop was not nested.
I know that I can create another count variable just after the first loop and initialize it at 0, but I was wondering if it was the normal behavior of nested loop or if maybe there is an option to avoid that?

Thank you!


Sign In or Register to comment.