[rules-users] Indep stated Sub Conditions Vs AND

Mark Proctor mproctor at codehaus.org
Thu Nov 22 05:55:00 EST 2007


Arjun Dhar wrote:
> Whats the difference between:
>
> when
>   <Sub Condition A>
>   <Sub Condition B>
> Then
>  ...
> End
>
> Vs
>
>
> when
>   <Sub Condition A> and <Sub Condition B>
> Then
>  ...
> End
>   
nothing, there is an implicit 'and' as the root node. So any child nodes 
will implicitely be be grouped by that 'and' conditional element.
>
> ..Assumping I have no need to use variables between A & B, do I get a 
> performance improvement using "AND" or does the Rete evaluate faster if the sub-
> conditions are stated independently?
>
>
> Thanks in advance
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>   




More information about the rules-users mailing list