> [...] for your reference, one example of message
> could be like: (message david reply (i_know (fact A in stack 1)). and in
> this case, ?content would be (i_know (fact A in stack 1)).
Have you tried this? I am sure at the current implementation of Jess you
cannot have facts with nested structure like this above. What you can have
though, is somethig like:
Fact:
(message david reply "(i_know (fact A in stack 1))")
Rule:
(defrule test
(message ?who ?action ?content)
=>
(assert-string ?content)
)
It will work as expected, inserting for you new fact:
(i_know (fact A in stack 1))
Hope it helps
Best regards
Mariusz
On Wed, 19 Apr 2000, Weihua Zhou wrote:
> hi, there, I just wonder if you know how to create fact in the following
> case, which I am working on.
>
> (defrule test
> (message ?who ?action ?content)
> =>
> (assert ?content)
> )
>
> this rule doesn't work. basically I am trying to assert message content
> into a rete engine. I try both ?content and $content. but neither of
> them works. do you have any idea how I can construct a fact based on
> that content held by ?content or $?content? what kind of type is the
> variable of ?content here? for your reference, one example of message
> could be like: (message david reply (i_know (fact A in stack 1)). and in
> this case, ?content would be (i_know (fact A in stack 1)).
---------------------------------------------------------------------
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]
---------------------------------------------------------------------