Hi all, I wrote the following jess code:
(deffacts initialization (user-interaction_movement (name john) (position 0) (heading N) (direction N) (speed 0.5) (time 0)) ) (defrule is-slow (printout t "here---is slow" crlf) (user-interaction_movement (name ?user) (position ?p) (heading ?h) (direction ?d) (speed ?s) (time 0)) (test (<= ?s 1.5)) => (printout t "is slow" crlf) (assert (slow ?user)) ) (reset) (run) (facts) Here is the result: Jess> (batch test.CLP) f-0 (MAIN::initial-fact) f-1 (MAIN::user-interaction_movement (name john) (position 0) (heading N) (dir ection N) (speed 0.5) (time 0)) Do you know why "is-slow" rule does not get asserted? I am using Jess61p2.CLP trial version on win XP. Thanks, Leila -------------------------------------------------------------------- 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] --------------------------------------------------------------------