You can only call functions on rule LHSs in the context of a test; for
example
(deftemplate foo (slot bar))
(deffunction baz ...)
(defrule rule-1
(foo (bar ?name&:(isAValidName ?name)))
=>
...)
I think prasanna vasan wrote:
> Hello all,
>
> How to call deffunction from the LHS???
>
> (defrule Rule-1
> ?isValid <- (isAValidName ?name)
> )
>
> where isValidName is a deffunction....
>
>
> is this is correct???
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
---------------------------------------------------------
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]
---------------------------------------------------------------------