I think Calvin Pevee wrote: > (defrule > (adv-attribute radio-advertisement ?x) > =>
Maybe it is usefull, to give the rules a name??? I think Jason Morris wrote: > (defrule print-adv-attributes-facts > "This rule matches all adv-attributes facts and binds their id and attribute slots to variables" > ;; Only use the $ prefix to match multifields in LHS patterns. Drop it on the RHS of rules. > ?fact <- (adv-attributes (id ?id) (attributes $?attribs)) > => > (printout t "Fact-id=" ?fact crlf) > (printout t "id=" ?fact crlf) > (printout t "attribs=" ?fact crlf)) There a two things wrong, I think: First is the line ?fact... there you call attributes and not attribs Second are the printouts, how does JESS know, what the difference between the three variable ?fact are? I think you meant > (printout t "Fact-id=" ?fact crlf) > (printout t "id=" ?id crlf) > (printout t "attribs=" ?attribs crlf)) Hope I'm right... not that good in programmer's stuff, just as good as in english, sorry about that, but I try to get better. Lars H|bner -------------------------------------------------------------------- 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] --------------------------------------------------------------------
