Hello experts ,
Please see the following rule (kindly excuse me if there is some syntax error as i just typed it without compiling)
(defrule my_rule
(temp_A
(my_slot_1 ?my_var_1)
(my_slot_2 ?my_var_2)
(my_slot_3 ?my_var_3)
(my_slot_4 ?my_var_4)
)
(test (eq ?my_var_1 10))
(test (eq ?my_var_2 20))
(test (eq ?my_var_3 30))
(test (eq ?my_var_4 40))
=>
(printout t "i am fired :)")
)
so in the above rule there are four conditions and we know that if one or more condition do not met
then this rule won't execute
I need to print all those variables which do not met with given conditions (in the case when rule does not get fired)
please note that I can not have negate of this rule as i have multiple rules active
i do not know if clips provide that sort of information by any mean,
if yes please provide pointer to that
if not then I can change the code if required to get this information so please guide me where to start.
thanking you in advance.
--
You received this message because you are subscribed to the Google Groups "CLIPSESG" group.
To post to this group, send email to CLIP...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CLIPSESG?hl=en
--> IF YOU NO LONGER WANT TO RECEIVE EMAIL <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Click on "Edit my membership" link.
Select the "No Email" radio button.
Click the "Save these settings" button.
--> IF YOU WANT TO UNSUBSCRIBE <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Sign in
Click on "Edit my membership" link.
Click the "Unsubscribe" button.
Note: This appears to be the most reliable way to unsubscribe
Alternately, send email to CLIPSESG-u...@googlegroups.com. You will receive an email which you must respond to as well to unsubscribe. Clicking the link mentioned in the unsubscribe reply does not appear to work reliably.
(value ?v&:(!= ?v 10))
=>
(printout t ?v "!= " 10 crlf))
(defrule my_ne_rule1
(value ?v&:(!= ?v 10)&:
(!= ?v 20)&:
(!= ?v 40))
=>
(printout t " NE " crlf))