Hi All,

Is there a built-in facility to simplify the implementation of b

(defrule full-score
"If both conditions were met, get a full score."
?x <- (cond1)
?y <- (cond2)
=>
(retract ?x)
(retract ?y)
(assert (score 1)))

(defrule partial-score-1
"If only one condition was met, get a half score."
?x <- (cond1)
=>
(retract ?x)
(assert (score 0.5)))

(defrule partial-score-2
"If only one condition was met, get a half score."
?x <- (cond2)
=>
(retract ?x)
(assert (score 0.5)))

Thanks,
Jenngang Shih

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