explanation of ASP codes

Results 1 to 3 of 3

Thread: explanation of ASP codes

  1. #1
    yann Guest

    Default explanation of ASP codes

    can anyone explain to me wat does the IF statement in the following VBscript does?<BR><BR>myPassword = "asd"<BR>if (myPassword &#060;asd&#062; sharedSecret) then<BR>reply error...<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: explanation of ASP codes

    all it does is generate an error due to incorrect syntax<BR><BR>Should be something like<BR><BR>myPassword = "asd"<BR>if myPassword &#060;&#062; "asd" then<BR>Do something here<BR>End IF<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: explanation of ASP codes

    As Steve has pointed out the syntax is wrong. Pretty much what it does is say If the password is NOT Equal to asd then output an error.<BR><BR>BUT the syntax is:<BR><BR>If YourVariable &#060;&#062; "asd" then<BR>response.write "Wrong password"<BR>response.end<BR>End If<BR><BR>Where: <BR><BR>&#060;&#062; is NOT Equal<BR>response.end will halt the page.<BR><BR>Hope this clears it up.<BR><BR>Dwane Lumley

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts