Help:switch

See the ParserFunctions documentation at meta for details on this function.