Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to accept a series of Yes & No responses without exiting the loop

Status
Not open for further replies.

PrologStudent

Programmer
Mar 12, 2010
1
0
0
JM
I am building a small expert system in Prolog and I am having one issue and that is when i am running the program and once i type a NO response the program automatically ignores the rest of questions within that category and jumps to the other.

What i want it to do is continue asking all the questions in that category and then display the response instead of jumping to the second set of questions.

Please assist.
 
Without any code it's hard to say anything.
You have to arrange your code for that, ask questions, store the answers (with assert for example) and when the sequence of questions is finished, study the answers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top