title: Does Sass have a switch function?
body: <p>With Sass' ability to use variables, one would hope there is a large set of logic functions we can do with them.</p>
  
  <p>Is there a way to do something like this?</p>
  
  <pre><code>$someVar: someValue !default;
  
  @switch $someVar
  {
      @case 'red':
          .arbitrary-css here {}
  
      @break;
  
      @case 'green':
          .arbitrary-css here {}
  
      @break;
  
      @case 'blue':
          .arbitrary-css here {}
  
      @break;
  }
  </code></pre>
  
  <p>However, I can't find anything in the Sass reference about this.</p>