Hi,
Obviously, because it is inside the 'switch(buildingType)' so if it goes always to any case the 'switch' statement is over because of the 'break'
It should be something like this
switch (buildingType) {
case (1) :
Instantiate (building1, position, transform.rotation);
position += Vector3 (0,0,zchange);
numberOfBuildings--;
break;
case (2) :
Instantiate (building2, position, transform.rotation);
position += Vector3 (0,0,zchange);
numberOfBuildings--;
break;
case (3) :
Instantiate (building3, position, transform.rotation);
position += Vector3 (0,0,zchange);
numberOfBuildings--;
break;
case (4) :
Instantiate (nothing, position, transform.rotation);
position += Vector3 (0,0,zchange);
numberOfBuildings--;
break;
}//end switch
if (numberOfBuildings == 0 && numberOfRows == 0){
print ("next");
position == Vector3 (10,0,0);
numberOfBuildings += inititalBuildingNumber;
rowchange += rowchangeIncrease;
numberOfRows--;
}