title: scala error illegal variable in pattern alternative on pattern matching case
body: <p>I am new to scala. I was writing a pattern matching as below:</p>
  
  <pre><code>  val capitals = Map("France" -&gt; "Paris", "Japan" -&gt; "Tokyo")
    show(capitals.get("test"))
    def show(x: Option[String]) = x match {
      case Some(s) | None  =&gt; s
    }
  </code></pre>
  
  <p>I am getting error:</p>
  
  <pre><code>Error: illegal variable in pattern alternative
      case Some(s) | None  =&gt; s
                ^
  </code></pre>
  
  <p>I am trying to see how can I achieve or condition like I have in if statement in java</p>
  
  <blockquote>
    <p>if (str == null || str.isEmpty())</p>
  </blockquote>
  
  <p>Can you help rewrite the code or point out the mistake?</p>
  
  <p>Question: How do I mention or condition in a case pattern matching?</p>