Choice making and validating step by step takes time. languages have a feature called `case` which takes constant or expression and takes less time to make choice than if-else.
case expression in
case1) statement1 ;;
case2) statement2 ;;
*) default statement;;
Only constants or constant expression can pass through case expression.