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 [EMAIL PROTECTED] --------------------------------------------------------------------
