<div dir="ltr"><div>read the manual</div>
<div> </div>
<div><a href="http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html">http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html</a><br><br></div>
<div class="gmail_quote">On Thu, Oct 16, 2008 at 3:03 PM, samd <span dir="ltr"><<a href="mailto:sdoyle_2@yahoo.com">sdoyle_2@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><br><br><br>samd wrote:<br>><br>> How do I evaluate null conditions in the following case for example?<br>><br>> seller: ( seller.cheese != null && seller.active == true )<br>> cheese: ( cheese.type == "chedder" ) from seller.cheese<br>
><br>> In the above example seller.cheese is null but seller is used in the<br>> second part of the rule since we can't evaluate facts for null for some<br>> reason how do you check for a null condition.<br>
><br>><br><br></div>should be cheese: ( type == "chedder" ) from seller.cheese<br><br>anyways I tried doing this<br>
<div class="Ih2E3d"><br>(<br> seller: ( seller.cheese != null && seller.active == true )<br> cheese: ( cheese.type == "chedder" ) from seller.cheese<br></div>)<br>or<br>
<div class="Ih2E3d">(<br> seller: ( seller.cheese = null && seller.active == true )<br></div>)<br>Which throws an error<br>I just need the correct syntax I guess heh<br><font color="#888888"><br>--<br>View this message in context: <a href="http://www.nabble.com/null-checking-tp20015953p20016182.html" target="_blank">http://www.nabble.com/null-checking-tp20015953p20016182.html</a><br>
</font>
<div>
<div></div>
<div class="Wj3C7c">Sent from the drools - user mailing list archive at Nabble.com.<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div></blockquote></div><br></div>