Hi there all. I have a wee problem with "looping". If I write the following:

(defrule general_info
        ?e <- (enquiry (info_known "N"))
        =>
        (printout t crlf crlf "There are lots of different types of  HIV 
information." crlf
        "As you're not sure what type you're looking for," crlf
        "I'll give you some options to choose from." crlf crlf

        "Would you like to know what HIV and AIDS are and how they affect the 
body?" crlf
        "(Y or N): ")
        (bind ?G1 (readline))
        (modify ?e(G1 ?G1))
)

The user will be continually prompted with the question "Would you like 
.....". If I set the value of ?e(info_known) to "done" as follows:

(modify ?e(G1 ?G1) (info_known "done"))

it prevents this problem. Is this the correct way to do this? Or should I be 
retracting a fact or something?

Many thanks. Debbie Lampon


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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]
---------------------------------------------------------------------

Reply via email to