Just been going by the printouts, as all of the other questions have printed out fine (most of them are yes/no), it asks the 'thisweek' question and takes the number, this correctly then loads the 'lastweek' question, but after I enter a value for this, the response isn't printed, it just comes to the end of the program and returns the number of rules.
Ernest Friedman-Hill wrote: > > Nothing wrong with this rule. Are you using the "watch" function to > monitor what's going on, or just relying on your printouts? > > On Nov 23, 2006, at 12:51 PM, Hysteria86 wrote: > >> >> >> Thanks, I've had a go with that but I still can't get the output >> I'm looking >> for. The structure of the defrule is >> >> (defrule apples-now >> (answer (ident thisweek) (text ?i)) >> (answer (ident lastweek) (text ?j)) >> (test (< ?i ?j)) >> => >> (printout t "You have less apples than last week" crlf)) >> >> ident is the question being asked and text the answer. The two >> questions are >> represented in the deffacts (there is another rule that >> automatically asks >> lastweek after thisweek, providing the answer to thisweek was > 0). >> The >> system just doesn't seem to fire this method, and I can't figure >> out why. >> Not sure if it's something to do with taking variables from two >> different >> questions or something. >> -- >> View this message in context: http://www.nabble.com/Dealing-WIth- >> User-Input-tf2595635.html#a7511935 >> Sent from the Jess mailing list archive at Nabble.com. >> -------------------------------------------------------------------- >> 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 owner-jess- >> [EMAIL PROTECTED] >> -------------------------------------------------------------------- > > --------------------------------------------------------- > Ernest Friedman-Hill > Advanced Software Research Phone: (925) 294-2154 > Sandia National Labs FAX: (925) 294-2234 > PO Box 969, MS 9012 [EMAIL PROTECTED] > Livermore, CA 94550 http://www.jessrules.com > -------------------------------------------------------------------- > 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] > -------------------------------------------------------------------- > > > -- View this message in context: http://www.nabble.com/Dealing-WIth-User-Input-tf2595635.html#a7549193 Sent from the Jess mailing list archive at Nabble.com. -------------------------------------------------------------------- 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] --------------------------------------------------------------------
