The Material Switch node has inputs that can be connected to other materials and provides an Input parameters to switch between the connected materials (figure 1).

|
Material Switch

|
Figure 1: The Material Switch node use to switch between a Diffuse material and a Glossy Material