This is exactly what "defquery" is for. See defquery in Chapter 2 of
the manual.
I think Satish boggavarapu wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>
> Hi All,
>
> Is it possible to access a fact with out matching it in the If part?
>
> lets say i have a Time fact. Now when ever i fire a rule i need to print
> when it is fired.
>
> (deftemplate time (slot time))
>
> (defrule test1
> ......
> =>
> (printout t "Rule fired at " time crlf)
> )
>
> some thing like that.
>
> I do not want to pattern match that time fact on the LHS and use it on the
> RHS, as every time the time value changes, the rule gets fired which is not
> desirable.
>
> Any suggestions?
>
> Thanks in Advance
> Satish.
---------------------------------------------------------
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]
---------------------------------------------------------------------