Hi

Jess> (deftemplate fact (slot slot))
TRUE
Jess> (assert (fact (slot a)))
<Fact-0>
Jess> (fact-slot-value (fact-id 0) slot)
a
Jess> 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of lai
> Sent: Saturday, March 13, 2004 7:19 PM
> To: [EMAIL PROTECTED]
> Do anyone know how to returns the value in the named slot of 
> the fact with the given fact-id?
> Can you give me an example?

Look at (fact-slot-value) function use:

Jess> (deftemplate fact (slot slot))
TRUE
Jess> (assert (fact (slot value)))
<Fact-0>
Jess> (fact-slot-value (fact-id 0) slot)
value

-- 
All the best, 
Maxim Tretyak 


---------------------------------------------------------------
This message (including any attachments) contains confidential
information intended for a specific individual and purpose, 
and is protected by law. If You are not the intended recipient,
you should delete this message - any disclosure, copying, or 
distribution of this message, or the taking of any action based 
on it, is strictly prohibited!

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