Other principal buildings: Except as otherwise provided, each side yard shall equal 30 feet or a distance equal to the height of the principal building, whichever is a greater; provided, however, that when a side yard adjoins a lot in any district other than an R District, such side yard shall equal 15 feet or a distance equal to 1/2 the height of the principal building, whichever is greater.