On Jul 23, 2008, at 6:50 PM, Ernest Friedman-Hill wrote:
The "forall" conditional element can do this:
(defrule something-like-this
(forall (some-state (list-o-things $? ?thing-id $?))
(thing (id ?thing-id) (state "2")))
=>
(do-something)
)
This basically reads "If for
The "forall" conditional element can do this:
(defrule something-like-this
(forall (some-state (list-o-things $? ?thing-id $?))
(thing (id ?thing-id) (state "2")))
=>
(do-something)
)
This basically reads "If for all ways of matching the first pattern,
there's a mat
Sorry for the wacky subject line, but can't think of a good way to
describe what I'm attempting.
Suppose I had something like the following:
(deftemplate some-state (multislot list-o-things))
(deftemplate thing (slot id) (slot state (default "1")))
(defrule transition-2
(some-state (list-o-