Hi,
The rule
(defrule s_24_sendlinks-texts
(send-links ?y)
(web-page (URL ?y) (links-texts $?t) (links $?l))
(knowledge-to-send (name-other-agent ?a)
(terms-links-texts $?w))
(test (> (length$ (bind $?x (search-in-list $?w $?t $?l))) 0))
=>
(insert-link ?a $?x))
(insert-link is a function) has this parsing error:
ess reported an error in routine ReteCompiler.eval.
Message: Unbound variable found in funcall: x parsing defrule
s_24_sendlinks-texts .
Program text: ( defrule s_24_sendlinks-texts ( send-links ?y ) ( web-page
( URL ?y ) ( links-texts $?t ) ( links $?l ) ) ( knowledge-to-send
name-other-agent ?a ) ( terms-links-texts $?w ) ) ( test ( > ( length$
bind $?x ( search-in-list $?w $?t $?l ) ) ) 0 ) ) = > ( insert-link ?a
$?x ) ) at line 25.
at jess/ReteCompiler.compilerError
at jess/ReteCompiler.eval
at jess/ReteCompiler.eval
at jess/ReteCompiler.eval
at jess/ReteCompiler.addRule
at jess/Rete.addDefrule
at jess/Jesp.doParseDefrule
at jess/Jesp.parseDefrule
at jess/Jesp.parseSexp
at jess/Jesp.parse
How do I bind a Value in the LHS to use it in the RHS? I also tried ?x
instead of $?x.
Thx in advance
Fred Freitas
----------------------------------------------------------
PhD. student - Artificial Intelligence & Internet
Universidade Federal de Santa Catarina - Brasil
Currently at University of Karlsruhe - Germany
---------------------------------------------------------------------
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]
---------------------------------------------------------------------