You can bind each one to a variable, and then print the variable. IN
Jess 6.x:

(defrule foo
  ?f <- (foo)
  ?b <- (bar)
  =>
  (printout t (call ?f toStringWithParens) crlf)
  (printout t (call ?b toStringWithParens) crlf))

but I really can't think of a practical circumstance where you'd want
to do this.

Note also that if you invoke (watch rules), then when each rule fires
you'll see a summary of the rule and the facts that activated it.


I think Katja-Zarina Blankenhaus wrote:
> Hello !
> 
> I am a Jess beginner and have a very basic question: How do I print out
> the matched facts in a rule on the RHS of that rule ?
> 
> Thanx,
> Matthias
> 
> 
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to