Loops only run one function?
#2

I'm very tired so please bare with me.

If I understand correctly, I think "break;" causes your loop to stop completely. Either removing "break;" or changing the second "if" to "else if" may fix it.

If you want to break the loop regardless, I suggest placing the break; statement outside any "if" statement. (i.e. before the closing callback of the loop).

Sorry if I don't make alot of sense, would appreciate someone else either rephrasing my words or correcting them.
Reply


Messages In This Thread
Loops only run one function? - by AphexCCFC - 30.04.2014, 01:47
Re: Loops only run one function? - by Dignity - 30.04.2014, 02:38
Re: Loops only run one function? - by SkittlesAreFalling - 30.04.2014, 03:18
Re: Loops only run one function? - by AphexCCFC - 30.04.2014, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)