I just started using CLIPS. Here is my problem, I defined a rule called check in 'check1.clp':
(not (input 10))
(assert (result 10))
(bind ?temp 10)
(printout t ?temp crlf))
And at top-level, I did this, but nothing happens:
CLIPS> (assert (input 100))
CLIPS> (load check1.clp)
Defining defrule: check1 +j+j
How come the negation operator does not work? Do I use it in a wrong way? Thanks for your help. Very much appreciated.
Issue a (reset) command before you do the (assert (input 100))) command.
The (reset) is necessary for negated patterns to work properly.
Log in to post a comment.