case

Works with when, then, else, and end. Case identifies the beginning of a specific situation, in which when, then, and else actions are defined.

Syntax

case expression { when expression then expression } [ else 
expression ] end