title: Is the SWITCH and CASE statement supported in APEX in Salesforce?
body: <p>Instead of this basic structure with IF / THEN / ELSEIF / ELSE</p>
  
  <pre><code>int month = 8;
  String monthString;
  if (month == 1) {
      monthString = "January";
  } else if (month == 2) {
      monthString = "February";
  }
  ...  // and so on
  </code></pre>
  
  <p>it would be nice to have </p>
  
  <pre><code>    int month = 8;
      String monthString;
      switch (month) {
          case 1:  monthString = "January";
                   break;
          case 2:  monthString = "February";
                   break;
  
          ..... // and so on
  
          case 12: monthString = "December";
                   break;
          default: monthString = "Invalid month";
                   break;
      }
  </code></pre>
  
  <p>This would increase readability and make it easier to debug due to clarity of intent.</p>