Hi,
I am trying to retrieve a value from a fact.
First i initialize a fact and bind to ?*status*
(bind ?*status* (assert (stopvalue (status 0))))
Periodically i modify the status slot.
(modify ?*status* (status -1))
Later, i want to retrieve that status value (is it 0 or -1?).
This here works, but only if i know the fact-id number:
(bind ?x (fact-slot-value 5 status))
What i want to do is this, using the global variable for the fact:
(bind ?x (fact-slot-value ?*status* status))
But, i don't know how to get the number '5' from the global '?*status*'
Two things.
One, how do i do this?
Two, is this a sensible way of achieving this end? I am new to this, so
don't know all the good techniques.
Thanks,
mark
---------------------------------------------------------------------
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]
---------------------------------------------------------------------