Hi!
I am new to CLIPS.
Here is problem I am trying to solve now.
I have several facts. For example:
(f (v 1))
(f (v 2))
(f (v 7))
now I need to write rule, which will have multifield
containing slot 'v' value of all matching facts.
(defrule all-facts
??????
=>
(bind ?helper (new Helper))
(foreach ?i $?all
(call ?helper addFact ?i))
)
As I see I need to feed them to some Helper object.
Maybe there is some other way doing it? If no, how could I create such
multifield. Also, I do not want to retrat facts while the rule is execute,
I will need them later.
Any advice is appreciated.
Thanks!
Vadim
--
;;-----------------------------------+-----------------------------------+
;; [EMAIL PROTECTED] + Those who do not understand Unix +
;; Project Manager, Matranet Inc. + are condemned to reinvent it, +
;; http://www.matranet.com/ + poorly. (H. Spencer) +
;;-----------------------------------+-----------------------------------+
---------------------------------------------------------------------
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]
---------------------------------------------------------------------