dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Simple ASP Question

  1. #1
    Rainy Day Member eightamrock's Avatar
    Join Date
    Jun 2003
    Location
    Neshanic Station NJ
    Posts
    303

    Simple ASP Question

    Hey guys,

    Does anyone here know how to test for multiple conditions with ASP?

    I know with Actionscript its.....

    Code:
    if(condition1 && condition2){
    I just dont know how to do it with ASP....If anyone knows please enlighten me


    Thanks in advance
    "Shhhhh I have insomnia and Im trying to sleep it off."

  2. #2
    say no more loydall's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    1,261
    example:

    If userName="Admin" And pwd="pass" Then


    logged = True

    Else

    logged = False

    End If



    See?

  3. #3
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    If (userName="Admin" And pwd="pass") Then

    logged = True

    Else

    logged = False

    End If


    just to be sure.. keep the conditions in () if you have more than one.
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  4. #4
    Rainy Day Member eightamrock's Avatar
    Join Date
    Jun 2003
    Location
    Neshanic Station NJ
    Posts
    303
    Thanks Guys!!!!

    Worked like a charm.

    I appreciate the help.

    Cheers
    "Shhhhh I have insomnia and Im trying to sleep it off."

  5. #5
    say no more loydall's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    1,261
    Originally posted by mxgen
    If (userName="Admin" And pwd="pass") Then

    logged = True

    Else

    logged = False

    End If


    just to be sure.. keep the conditions in () if you have more than one.
    You'd only need brackets if you had a more complex condition - not just 2 conditions. You don't need brackets there.... that's the beauty of vb.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center