View Full Version : need help with if statement

04-23-2003, 08:08 AM
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

<% 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!


04-23-2003, 12:17 PM
thats ASP written with Javascript right ? If so :-

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


04-23-2003, 12:58 PM
I knew this was simple -- I was using '+' instead of '&&'

Time to go to bed!


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum