<div dir="ltr"><div>read the manual</div>
<div>&nbsp;</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">&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">
<div class="Ih2E3d"><br><br><br>samd wrote:<br>&gt;<br>&gt; How do I evaluate null conditions in the following case for example?<br>&gt;<br>&gt; seller: ( seller.cheese != null &amp;&amp; seller.active == true )<br>&gt; cheese: ( cheese.type == &quot;chedder&quot; ) from seller.cheese<br>
&gt;<br>&gt; In the above example seller.cheese is null but seller is used in the<br>&gt; second part of the rule since we can&#39;t evaluate facts for null for some<br>&gt; reason how do you check for a null condition.<br>
&gt;<br>&gt;<br><br></div>should be cheese: ( type == &quot;chedder&quot; ) from seller.cheese<br><br>anyways I tried doing this<br>
<div class="Ih2E3d"><br>(<br>&nbsp;seller: ( seller.cheese != null &amp;&amp; seller.active == true )<br>&nbsp;cheese: ( cheese.type == &quot;chedder&quot; ) from seller.cheese<br></div>)<br>or<br>
<div class="Ih2E3d">(<br>&nbsp;seller: ( seller.cheese = null &amp;&amp; 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>