I think Govoni, Darren wrote:
[Charset windows-1252 unsupported, filtering to ASCII...]
> Hi,
> I have a rather tricky problem I'd like to solve with a rule. Essentially, I want
> a rule that OR's together some number of possibilities of facts on the LHS, and then
> know how many of those OR parts actually were true.
>
The best way might be to use a defquery instead of a rule, and then
just invoke the query using count-query-results when you need the answer.
(defquery bmo
(or
(word (element first))
(word (element second))
(word (element third))
))
(count-query-results bmo)
---------------------------------------------------------
Ernest Friedman-Hill
Science and Engineering PSEs Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
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]
--------------------------------------------------------------------