6.
What is the purpose of the 'switch' statement in C#?