Does Sass have a switch function?
No there isn’t any supported switch statement in sass but if you only need to use the switch statement to tweak a variable, you can use sass maps in a switch statement sort of way. Using SASS maps in place of a switch statement $newVar: map-get(( case_1_test_name : case_1_return_value, case_2_test_name : case_2_return_value, ), $testVar); So … Read more