How Does A Switch Function