The condition for and is &&
For Example
if (i == 8 && h == 4.093 )
        System.out.println("Condition Satisfied");

Regards,
BASAVARAJ NAGUR
TCS MUMBAI
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan Lopez
Sent: Tuesday, October 24, 2000 9:05 PM
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