<div dir="ltr"><div>I may be wrong, but that rule syntax looks off. Does it compile? This is what I imagine u are trying to do</div>
<div>&nbsp;</div>
<div>$seller : Seller(cheese != null and active == true)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cheese(type == &quot;chedder&quot;) from $seller.cheese<br></div>
<div class="gmail_quote">On Thu, Oct 16, 2008 at 1:29 PM, samd <span dir="ltr">&lt;<a href="mailto:sdoyle_2@yahoo.com">sdoyle_2@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>How do I evaluate null conditions in the following case for example?<br><br>seller: ( seller.cheese != null &amp;&amp; seller.active == true )<br>
cheese: ( cheese.type == &quot;chedder&quot; ) from seller.cheese<br><br>In the above example seller.cheese is null but seller is used in the second<br>part of the rule since we can&#39;t evaluate facts for null for some reason how<br>
do you check for a null condition.<br><font color="#888888"><br>--<br>View this message in context: <a href="http://www.nabble.com/null-checking-tp20015953p20015953.html" target="_blank">http://www.nabble.com/null-checking-tp20015953p20015953.html</a><br>
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></font></blockquote></div><br></div>