title: Error with multiple If then, else if
body: <p>I'm new in ASP development.</p>
  
  <p>This is my source code :</p>
  
  <pre><code>ident = request.Form("ident")
  pass=request.Form("passe")
  response.write(ident)
  response.write(pass)
  
  if pass= "m" and ident="m" Then 
      Session("connect")="membre"
      response.redirect("../")
  else if pass= "g" and ident="g" Then 
          Session("connect")="gest"
          response.redirect("../")
  else if pass= "a" and ident="a" Then
          Session("connect")="admin"
          response.redirect("../")
  else    
      response.redirect("ident.asp")
  End If
  </code></pre>
  
  <p>But, with this code, I get this :</p>
  
  <blockquote>
    <p>"Erreur de compilation Microsoft VBScript error '800a0401'</p>
    
    <p>Fin d'instruction attendue</p>
    
    <p>/iisHelp/common/500-100.asp, line 11</p>
    
    <p>Dim objASPError, blnErrorWritten, strServername, strServerIP,
    strRemoteIP Dim strMethod, lngPos, datNow, strQueryString, strURL
    --------------------------------------------------------------------------^</p>
    
    <p>Erreur de compilation Microsoft VBScript error '800a03f6'</p>
    
    <p>'End' attendu</p>
    
    <p>/groupe2/stage23/TP3/verif_id.asp, line 18 "</p>
  </blockquote>