title: MySQL If statement with multiple conditions
body: <p>I want to write <code>IF</code> statement inside a <code>Stored procedure</code> in MySQL in the following way:</p>
  
  <pre><code>IF (exp1 and exp2 and exp3) or exp4
  </code></pre>
  
  <p>I know MySQL will treat <code>IF()</code> as a function call.
  But I hope you got what I'm trying to achieve.
  I am new to MySQL syntax.</p>