title: If Statement Not Working as Expected in ASP Classic
body: <p>I have an if..else statement that will display whether or not the student is qualified to go for competition based from the value in database. But, my code is not working correctly.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>&lt;% If (rs_view.Fields.Item("StudentStatus").Value="OK") Then %&gt;
  &lt;strong&gt;&lt;font color="#3300FF" size="-1" face="Arial, Helvetica, sans-serif"&gt;
  &lt;%Response.Write("You are QUALIFIED to go for competition")%&gt;
  &lt;/font&gt;&lt;/strong&gt;
  
  &lt;% Else %&gt;
  
  &lt;strong&gt;&lt;font color="#FF0000" size="-1" face="Arial, Helvetica, sans-serif"&gt;
  &lt;%Response.Write("You are NOT QUALIFIED to go for competition")%&gt;
  &lt;/font&gt;&lt;/strong&gt;
  
  &lt;% End If %&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <ul>
  <li>it doesn't work correctly..meaning either the student is qualified or not qualified, it will still display NOT QUALIFIED for both status.</li>
  </ul>