I want to do a guide for a student who want to register in a college, knowing his statues, or anything related t a college system..
First < ask question which question type he want to ask "Foundation|diploma level|advance diploma|bachelor... then, id choice 1> ask: are you registered in "college Name? (yes/no)"
if yes > assert another question, No> print some advice, then go to another
.
.
some questions needs to get user input from a given choices .. "how do it"
"which level in diploma?" level1/level2/level3/level4
. . It is just like a guide program....
Your rule is missing a close right parenthesis. If you add it, you can get the rule to reactivate itself when you select level4.
CLIPS> (assert (case14))
<Fact-1>
CLIPS> (agenda)
0 choice4: f-1
For a total of 1 activation.
CLIPS> (watch facts)
CLIPS> (run)
<== f-1 (case14)
Which level in diploma of IS (level1 ,level2, level3, level4)?level4
==> f-2 (case14)
<== f-2 (case14)
Which level in diploma of IS (level1 ,level2, level3, level4)?level4
==> f-3 (case14)
<== f-3 (case14)
Which level in diploma of IS (level1 ,level2, level3, level4)?level3
==> f-4 (case15)
CLIPS>