Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy need help with if statement

    This may be simple for some of you...but I am not sure how to do write the code for this...

    I have the following if statement

    Code:
    <% if (GuesserRecord.Fields.Item("Name") == "Suggest") { %>
    But I want to ADD to it where:

    if the above AND GuesserRecord.Fields.Item("KnowSex") does not equal "Boy"

    Thanks in advance!

    ~MVA

  • #2
    New Coder
    Join Date
    Nov 2002
    Location
    London, UK
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thats ASP written with Javascript right ? If so :-


    Code:
    <% if (GuesserRecord.Fields.Item("Name") == "Suggest" && GuesserRecord.Fields.Item("KnowSex") != "Boy") { %>


    Adam

  • #3
    New Coder
    Join Date
    Dec 2002
    Location
    Australia
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks!

    I knew this was simple -- I was using '+' instead of '&&'

    Time to go to bed!

    ~MVA


  •  

    Posting Permissions

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