title: How can I check two conditions in an if statement?
body: <pre><code>&lt;%
  i=1
  j=1
  
  if ((i=1) &amp;&amp; (j=1)) then
  response.write("i = 1 and j =1")
  else
  response.write("i &lt;&gt; 0")
  end if
  
  %&gt;
  </code></pre>
  
  <p>I'm saving this with a <code>.asp</code> extension. Here the <code>if</code> condition is not working. How can I check 2 conditions in <code>if</code> condition of classic ASP code?</p>