title: Simple PHP Condition help: if($Var1 = in list($List) and $Cond2) - Is this posslbe?
body: <p>Is this a possible function?</p>
  
  <p>I need to check if a variable is existent in a list of ones I need to check against and also that cond2 is true
  eg</p>
  
  <pre><code>if($row['name'] == ("1" || "2" || "3") &amp;&amp; $Cond2){
      doThis();
  }
  </code></pre>
  
  <p>It's not working for me and all I changed in the copy paste was my list and the variable names</p>