Greetings
I am having problems trying to execute my code in JESS. The code works fine
under CLIPSWIN, but if I try and run it in JESS then I get strange
behaviour. For example when program is run, it should ask the questions ONE
AT A TIME instead of having both questions asked together. The code snippet
for the startup rule is shown below.
(defrule startup "define initial WME's created by (reset) "
=>
(printout t "Welcome to the diagnosis program " crlf)
(printout t "The system will ask you a series of questions " crlf)
(printout t "to which you need to answer Y or N " crlf)
(printout t "Have you experience any swelling ? (Y or N): ")
(assert (goal
(type swelling)
(value (readline)))) <--Should ask this and wait for response. Instead
it displays this 1st question and diplays the statement below simultaneously
and waits for user input there. I dont see why it does this.
(printout t "Have you been injured recently ? (Y or N): ")
(assert (goal
(type injury)
(value (readline)))))
Can anyone help as its doing my head in.. Just doesnt make any sense at all.
Is this a Bug in JESS??
Here is the output from running the code.
*****************
Welcome to the diagnosis program
The system will ask you a series of questions
to which you need to answer Y or N
Have you experience any swelling ? (Y or N): Have you been injured
recently ? (Y or N):
******************************************
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--------------------------------------------------------------------
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]
--------------------------------------------------------------------