case $var in
<<pattern1>>)
<<things to do for pattern 1>>
;;
<<pattern2>>)
<<things to do for pattern 1>>
;;
*) # The default condition
<<things to do in the default case>>
;;
esaccheat sheets.
$ cheat zsh_case