thanks Joco it worked like a charm

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Joao Jorge
Sent: 17 January 2005 12:10
To: [email protected]
Subject: Re: JESS: insert$


Hey dude, hows it going

Men basically you do everything right but you need keep the new values

i made this rule so you can see it work. 

(defrule x
        ?x <- (X ?y)
        =>
        (retract ?x)
        (bind ?grocery-list (create$ eggs bread milk))
        (bind ?grocery-list (insert$ ?grocery-list 1 meat))
        (printout t ?grocery-list)
        (assert (lista ?grocery-list)))


Regards
Joco Jorge

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to