Hi,

I have read the following in one of the forum post:

----------------
I should also tell you that using "test" conditional elements and
function calls is a lot less efficient than matching directly. A
vastly better (and shorter and clearer, too!) version of your first
rule would look like this: 
----------------

I have a jess rule which is something like:
(defrule rule1 
      (template_name
      (test (and (< ?var1 ?var2)
                    (>= ?var1 ?var3)))
      =>
      (printout "rule matches"))

Is there some other alternate to define the above rule without the "test"
operator?

Basically I want to define a "if" condition which can combine a "AND" or
"OR" operator.

Thanks,
Hari
-- 
View this message in context: 
http://www.nabble.com/Usage-of-%22test%22-conditional-element-tf3807969.html#a10777358
Sent from the Jess mailing list archive at Nabble.com.

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to