statement of the case A conditional control structure found in most modern programming languages that lets the user to choose between different sets of program statements based on the value of an expression.
case: It's analogous to other programming languages' switch keyword. It takes the variables that the when keyword will utilize.
when: It's identical to other programming languages' case keyword.
else: It's identical to other programming languages' default keyword.
Share a personalized message with your friends.