On Nov 10, 2006, at 12:11 AM, Skeptic 2000 wrote:
Hi,
I tried for the first time to use backward-chaining and I can't
figure out why this simple example don't work :
It doesn't work because you never call "reset". It's good practice to
call "reset" at some point before running any Jess
On Nov 13, 2006, at 1:22 AM, Soil inf. wrote:
"it is better practice to explicitly define an unordered fact
template with a
multislot to hold the list."
I am using an unordered template with multislots and return "not a
number"
error when i try to add / subtract multislot values. Sorry fo
Try doing a (reset) before the (run).
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Skeptic 2000
Sent: Friday, November 10, 2006 12:11 AM
To: jess-users@sandia.gov
Subject: JESS: First try with backward-chaining
Hi,
I tried for the first time to use b
Hi,
I tried for the first time to use backward-chaining and I can't figure out
why this simple example don't work :
(deftemplate x
(declare (backchain-reactive TRUE))
(slot a)
(slot b)
)
(defrule printX
(x (b 12))
=>
(printout t "yeah!")
)
(defrule createX
(need-x (b ?y))
=>
"it is better practice to explicitly define an unordered fact template with a
multislot to hold the list."
I am using an unordered template with multislots and return "not a number"
error when i try to add / subtract multislot values. Sorry for such a basic
question but how do i handle the multisl