title: advanced switch case
body: <p>I want to use a variable in a switch case. as an example,
  could not do it. Can you help?</p>
  
  <pre><code>switch(basket,pay){
     case true, true:
         blah blah...
     break;
     case false,true:
         blah blah..
     break;
     case false, false:
        blah blah...
     break;
  }
  </code></pre>