> Maybe I'm missing some subtlety, but what's wrong with
>
> (defrule PERSONALITY_PROBLEMS::r001
>    (declare (auto-focus TRUE))
>    ?f1 <- (or (personality_problems (troubling yes) (personality_problems
nil))
>               (personality_problems (perceiving yes) (personality_problems
nil)))
>    =>
>    (modify ?f1 (personality_problems yes)))
>

You missed that both troubling and perceiving have to be yes for
personality_problems to be yes as well.
Nevertheless, could I ask you to shed some light on the problem with the
following rule? Why does this rule contributes to assertion of
(EMOTIONAL_RESPONSE::need-emotional_response (centre_of_attention yes)) when
the starred pattern is not found. It takes place during the call to retract
the dashed pattern.

(defrule EMOTIONAL_RESPONSE::r018
  (declare (auto-focus TRUE))
^  (MAIN::modify)
*  (exists (EMOTIONAL_RESPONSE::need-emotional_response (emotional_response
~~nil)))
  (explicit (EMOTIONAL_RESPONSE::emotional_response (centre_of_attention
?v1)))
   (test (or (eq ?v1 yes)(eq ?v1 nil)))
  (EMOTIONAL_RESPONSE::emotional_response (centre_of_attention yes))
  ?factid <- (explicit (EMOTIONAL_RESPONSE::emotional_response
(emotional_response nil)))
=>
  (modify ?factid (emotional_response yes))
)

Thanks in advance,
Waldek

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