title: How to put a switch statement inside another switch statement
body: <p>Im trying to work out a quote value after a user makes a selection in 2 select boxes.</p>
  
  <p>It looks like 1 need 2 switch statements. Is this possible? (There are a lot more possible values than the ones below. I've deleted them for the sake of clarity)</p>
  
  <pre><code> var workOutQuote = function() {
          var value1 = $("#delivery_from_area").val();
          var value2 = $("#delivery_to_area").val();
          var val = '';
              switch (value1)
              { case '1':
                  { switch (value2)
                      { case '1': val="90"; break; }
                      { case '2': val="80"; break; }
                      { case '3': val="70"; break; }
                  }
              }
              { case '2':
                  { switch (value2)
                      { case '1': val="80"; break; }
                      { case '2': val="90"; break; }
                      { case '3': val="70"; break; }
                  }
              }
  }
  </code></pre>
  
  <p>Using the code above I get the error:</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token case 
  </code></pre>