Using debug, I was able to confirm that the method goes through all my columns and rows. Problem is when I added an if statement inside, the for loop will loop maybe four to ten times but eventually will just read [0,0]. Why?

I think there is something wrong with my condition statement. Without it, the method run through my grid array; with it, it will run through my grid maybe four to ten times, then it will stop, and just read the grid [0,0].

public int [] findCombinations(){
	int [] xy = new int[]{-100,-100};
	for (int y=0; y<height; y++) {
		for (int x=0; x<(width-2); x++) {
			Debug.Log (x + "," + y);
			if(grid[x,y].transform.childCount > 1 && grid[x+1,y].transform.childCount > 1  && grid[x+2,y].transform.childCount > 1){
				xy[0] = x;
				xy[1] = y;
				return xy;
			} 
		}
	}
	return xy;
} 

How should I correct the format of this method?

thx, sircrazynugget I found the error in my logic, it does work as one should expect