hi,
i made a template with a multislot and i want to fill him
i made one example but i'm not sure that is the best way :
(defrule calculAnneeEtude
?f <- (ResultatsAnnuels(annee $?annee&:(eq (length$ $?annee) 0)))
(ResultatsGeneraux(dureeEtude ?de&:(<> (str-compare ?de "0") 0)))
=>
(bind ?num (call ?*miss* stringToInt ?de))
(bind ?i 1)
(bind ?liste "")
(while (<= ?i ?num) do
(bind ?liste (str-cat ?liste ?i" "))
(bind ?i (+ ?i 1))
)
(bind ?listeAnnee (create$ ?liste))
(modify ?f (annee ?listeAnnee))
)
thank you
Dan
----------------------------------------------------------------
Groupe E.S.I.E.A.
www.intechinfo.fr
--------------------------------------------------------------------
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]
--------------------------------------------------------------------