this is simple java and/or c/c++; but here:

        if( thisIsTrue && thisIsAlsoTrue)
                this gets done
        else if((thisIsTrue || thisMightBeTrue) && (thisIsAlsoTrue))
                this will get done
        else if(thisIsTrue || thisMightBeTrue)
                this will be done

--just a suggestion; next time you have a question such as this, there are
many useful websites that can be found that will answer simple syntax
questions, maybe finding one you like would be useful to you.


Joseph Karau
Kingland Systems
[EMAIL PROTECTED]
507-536-3629


-----Original Message-----
From: Dan Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 10:35 AM
To: [EMAIL PROTECTED]
Subject: If stmt syntax problem


How do you do multiple conditions in an if statement?

EX:

<% if (condition1 > condition2 "and" condition2 =
condtion3 "and" condition3 < condition4 "and"
condtion5 <> condition6) %>
<html code>
<% else..... %>

What is the syntax for "and"

Thanks

-D

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to