title: Checking a bash variable against multiple values
body: <p>I want to check input parameters in my Bash script. There can be a lot of combinations, so I decided to use a construction like this:</p>
  
  <pre><code>if  ( [[ "$2" = "(PARAM1|PARAM2|PARAM3)" &amp;&amp; "$3" = "(PARAM11|PARAM22|PARAM33)" ]] )
  </code></pre>
  
  <p>I expected that this line will check which parameter is specified (there can be  input combinations like <code>PARAM1 PARAM22</code> or <code>PARAM11 PARAM3</code>, etc.).</p>
  
  <p>But it doesn't work. Should I use arrays or just need to try another syntaxes?</p>