How to get for() looping to return 0
#1

Basically I am having a hard time how to get for looping posted below to return 0 or 1 while it still loops through i
Код:
for(new i = 0; i < 17; i++)
{
	if(List[i][Position] < 16) 
	{
		if(List[i][Number] == -1) 
		{
			//code
			List[i][Position] ++;
		}
		else
		{
			//code
			List[i][Position] ++;			
		}
		return 0;
	}
}
right now this code only goes to i = 0. nothing else.
I have tried break; but that also keeps i at 0
Reply


Messages In This Thread
How to get for() looping to return 0 - by serj009 - 17.07.2013, 21:08
Re: How to get for() looping to return 0 - by thimo - 17.07.2013, 21:19
Re: How to get for() looping to return 0 - by serj009 - 17.07.2013, 21:24
Re: How to get for() looping to return 0 - by thimo - 17.07.2013, 21:26
Re: How to get for() looping to return 0 - by serj009 - 17.07.2013, 21:34
Re: How to get for() looping to return 0 - by MP2 - 18.07.2013, 01:31

Forum Jump:


Users browsing this thread: 1 Guest(s)