Raised This Month: $ Target: $400
 0% 

Solved Prevent double looping


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-16-2018 , 10:22   Re: Prevent double looping
Reply With Quote #1

Quote:
Originally Posted by KliPPy View Post
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.
__________________

Last edited by edon1337; 07-16-2018 at 10:23.
edon1337 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode