Wolfgang Laun wrote:
Is it correct that it isn't possible to bind the entire value of a
multislot to a variable *and* use some list pattern to restrict the
facts at the same time?
(defrule Rule
?fae <- (AE (ae $?msae & $? b c $? ))
=>
(printout t "match: " ?msae crlf)
)
Jess> (run)
match: ()
match: (a)
2
What about the code below?
(defrule Rule
?fae <- (AE (ae $?msae))
?fae <- (AE (ae $? b c $?))
=>
(printout t "match: " $?msae crlf)
)
I don't know if you are supposed to do that in JESS, but it seems to
work--------------------------------------------------------------------
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]
--------------------------------------------------------------------