next up previous

12.9.6 Getting the FactIndex of a Factaddress

The fact-index function returns the fact-index (an integer) of a fact-address.

Syntax

(fact-index <fact-address>)

Example

(defrule print-fact-indices
   ?f <- ($?)
   =>
   (printout t (fact-index ?f) crlf))


next up previous