what is the purpose of switch () statement?​