Quote:
Originally Posted by KliPPy
Just do it if you have to, there's nothing bad with that.
|
I think it is bad, because every time the first loop is activated, it activates the 2nd loop, even if it has already finished. And it will not let the 2nd loop continue, it will be stuck.
Quote:
1st loop has 20 entries, so basically it will loop 20 times
2nd loop has 10 entries, so basically it needs to loop 10 times.
1st loop will keep looping and activating 2nd loop until it reaches 20th entry.
Real time example:
-> i = 0;
-> x = 0;
-> i = 1;
-> x = 0;
-> i = 2;
-> x = 0;
|
I had this problem once that's why I'm avoiding double looping
BUT, I realized I don't need the 2nd loop so I'm okay for now.
__________________