What is the Switch function ?