Hi,

The '=' function compares numeric arguments only (as the documentation
for it indicates.) You can use 'eq' to compare strings for identity.

I think Venkat wrote:
> 
> 
> Hi Ernest,
>  
> Do you see any mistake in the following defrule when 
> added to the existing pumps.clp :
>  
> (defrule r1
>  (tank (OBJECT ?tank))
>  (test (= MAIN (get ?tank name)))
>  =>
>  (do-stuff)
> )
>  
> My intention is to match the tank name to a defined string
> and fire accordingly. I get no syntax error but the rule does
> not fire.
> 
> thanks,
> Venkat
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (510) 294-2154
Sandia National Labs                FAX:   (510) 294-2234
Org. 8920, MS 9214                  [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to