title: swift compare tuple in switch statement with or
body: <p>How would one go about having multiple possibilities for a tuple in a switch statement? note I have tried</p>
  
  <pre><code>var duel = (comp1CurrCard, comp2CurrCard)
      switch duel {
  
          case (1||14||27||40, 1||14||27||40):
              println("ace duel")
  
          case (2,15,28,41),(2,15,28,41):
              println("2 duel")
      }
  </code></pre>
  
  <p><code>comp1CurrCard</code> and <code>comp2CurrCard</code> are both of type Int.
  essentially what I want is if <code>comp1CurrCard</code> == 1 || 14 || 27 || 40 &amp;&amp; <code>comp2CurrCard</code> == 1 || 14 || 27 || 40 than println("ace duel")</p>
  
  <p>However I do not know how best to do this, I do know that I wish to use the switch statement as it seems the best way to tackle it  </p>
  
  <p>I know I am doing something wrong thanks to errors :P any help is appreciated!</p>