> (deffunction esborraSortir (?numero ?pal)
>    ?fact <- (sortir (str-cat ?numero "-" ?pal) ?)
>    (retract ?fact)
> )
> 

This is not a syntax that I thought jess would parse correctly. My guess is
that your usage of pattern matching:

?fact <- (sortir ...)

in the middle of a deffunction is *not* going to work. Pattern matching only
happens during a call to (run).

You might try:

;
;first assert your data and call run to allow pattern matching...
;
(deffunction esborraSortir (?numero ?pal)
   (assert (sortir (str-cat ?numero "-" ?pal) something))
   (run)
)

;
;pattern match for your asserted facts - and do with them what you will...
;
(defrule xyz
   ?fact <- (sortir ?numero_minus_pal ?)
=>
   ;do something with ?numero_minus_pal...
   (retract ?fact)
)

Again, it is not clear in your original deffunction what you were trying to
do...

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