I have embedded CLIPS into C Language program, I want to modify the facts for example change a certain slot value, which function can I use from C language Program. Otherwise I have to clean all the facts and assert new facts to implement my goal.
Thanks for any idea and suggestions
Section 4.4 of the Advanced Programming Guide, http://clipsrules.sourceforge.net/OnlineDocs.html, has a list of functions that can be used on facts. The fact-set queries and distributed actions in section 12.9.12 of the Basic Programming Guide are also useful for retrieving and manipulating facts from a C program. For example, you could use the following function call to retrieve all person deftemplate facts where the value in the age slot was greater than 18:
DATA_OBJECT result;
Eval("(find-all-facts ((?p person)) (> ?p:age 18))",&result);