![]() |
preventing for loops to repeat in while loops
How do I fix my for loops from repeating in while loops?
|
do you mean you want to prevent for loops to run inside while loops? an example or the actual code would come in handy to illustrate the problem.
|
Quote:
|
If you don't want something to repeat, don't use a loop. I'm really not sure what's being asked here.
|
A loop by definition is a block of code which is defined once but executed more than once in succession, hence the term 'loop'.
No idea what you mean, could you clarify if possible? |
You could wrap the for loop in an if block...
Without code it is hard to say though. |
I'm making a calendar system, I haven't found any other way around it. By the way, I never have had to make a calendar system before so. xD
|
I think what we are looking for is the actual code where the loop resides. Does it look something like this?
php Code:
Do you wish to prevent the for loop from being executed every time through the while and only execute it sometimes? "Need more input!" - Johnny 5 |
| All times are GMT. The time now is 04:48 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0