<div>Hi,</div>  <div>This is a very newbie question. I have a Person object which contains a collection named "interests". This collection will contain the activities that the Person is interested in. If the person is interested in Golf, Soccer and Baseball, then this collection will contain these 3 strings. I am trying to write a rule which checks whether a person is interested in Soccer OR Golf and if he's interested then do further logic. I looked at the documentation for Drools syntax, and looks like this is how i have to write the rule:</div>  <div>rule Testing<BR>&nbsp;when <BR>&nbsp;&nbsp;person : (Person (interests contains "Golf") or Person (interests contains "Soccer") )</div>  <div>&nbsp;then<BR>&nbsp;&nbsp;System.out.println("I am interested");<BR>end</div>  <div><BR>Is this the correct way to do this? Is there a simpler construct like:</div>  <div>person : Person (interests contains "Golf" or interests contains "Soccer" )</div>  <div>I was thinking on the lines
 of the "," (and) operator :</div>  <div><BR>person : Person (interests contains "Golf", interests contains "Soccer" )</div>  <div>Thank you.</div><p>&#32;



      <!--1--><hr size=1></hr> Why delete messages? Unlimited storage is <a href="http://in.rd.yahoo.com/tagline_mail_1/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/">just a click away.</a>