title: Converting a switch statement to ternary statement in javascript
body: <p>I'm looking to convert the following code block below to a single line of code using only ternary statements:</p>
  
  <pre><code>switch(true)
  {
      case (cond_1_bool):
          val_res = (cond_1_1_bool || cond_1_2_bool) ? res_1_1: res_1_2;
          break;
  
      default:
          val_res = res_2_1;
  }
  </code></pre>
  
  <p>How can I do this?!</p>