Change material output according to UV position?

How do I read an objects UV position (+U,+V, -U,-V,…) and change the material output accordingly? For example, I might have plain metal in one quadrant, painted metal in another, rusted metal in another, etc.

A texture coordinate node will give you your object’s UV coordinates.