Hello How can I have the same value of ?i and ?slot between rule (matching-similar-case) and rule(idea-combination)? (see the following two rules) Could anyone help me?
thanks lai (defmodule casebase) (defrule matching-similar-case (declare (salience 290)) (answer (ident q2)(text ?i)) (answer (ident q3)(text ?c)) ?fact <- (idea (issue ?i)(concept ?c)) => (printout t "Design ideas are " ?fact crlf) (bind ?slot (fact-slot-value ?fact solution)) (printout t ?slot crlf) (retract ?fact) (save-facts idea2 MAIN::idea)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Module matching (defmodule matching) (defrule idea-combination (answer (ident q2)(text ?i)) ?fact <- (idea (issue ?i)(concept ?slot)) => (printout t "Combined idea is " ?fact crlf) (bind ?slot (fact-slot-value ?fact concept)) (printout t ?slot crlf)) -------------------------------------------------------------------- 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] --------------------------------------------------------------------
