Hi,
I want to change my objects attribute values in deffunction. For
instance in the pump example it is written as a rule but what I want is
to have a deffunction to modify that object's attributes a simple
example is given. I wonder how i should modify it to get it work.
thanks.
(deffunction _modify (?oblect ?name ?slot ?value)
(if (eq ?object "pump") then
(pump (name ?name) (OBJECT ?pump)) ;;find the pump fact with the
required pump name
(set ?pump ?slot ?value) ;;and set the
slot with required value
))
somewhere in a rule
(_modify "pump" "pump1" flow 5)
---------------------------------------------------------------------
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]
---------------------------------------------------------------------