Re: If stmt syntax problem
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) %> <% 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
Re: If stmt syntax problem
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) %> <% 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
Re: If stmt syntax problem
&& === 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
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) %> <% 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