Thread: Break statement
View Single Post
Old May 21st, 2006, 7:35 PM   #2
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 316
Rep Power: 4 andro is on a distinguished road
Send a message via AIM to andro
	myBreakLabel:
		for (int x = 0; x < 10; x++)
		{
			for (int y = 0; y < 10; y++)
			{
				if (array[x][y].getState == true)
				{
					break myBreakLabel;
				}
			}
		}
andro is offline   Reply With Quote