title: Typescript switch case with logical and
body: <p>I am trying to write a switch statement but it doesn't seem to work how I want.</p>
  
  <pre><code>getExerciseDescription(exerciseId, intensity_level){
  
      alert(exerciseId + " " + intensity_level)
  
      switch (exerciseId &amp;&amp; intensity_level) {
          case (1 &amp;&amp; 1):
          this.header="Exercise 1 Level 1";
          this.instructions="Exercise 1 Level 1";
          break;
          case (1 &amp;&amp; 2):
          this.header="Exercise 1 Level 2";
          this.instructions="Exercise 1 Level 2";
          break;  
  
  
          case (2 &amp;&amp; 1):
          this.header="Exercise 2 Level 1";
          this.instructions="Exercise 2 Level 1";
          break;  
          case (2 &amp;&amp; 2):
          this.header="Exercise 2 Level 2";
          this.instructions="Exercise 2 Level 2";
          break;
  
          default:
          this.header="Default";
          this.instructions="Default";
          break;
      }
  
      return new Popup(this.header, this.instructions);
  } 
  </code></pre>
  
  <p>The alerts gives 2 and 1 but the returned value is for (1 &amp;&amp; 1). Why is it so? How can I fix this?</p>