How can I run the clips with out reset the fact when using CLIPS
问题 Here is my situation: I want to run the CLIPS periodically and the system can record how many times it runs. for example: I type in the terminal "run" many times to call the system periodically. then the system can record how many the system runs and show it on the screen. Here is my .clp file (defglobal ?*lock* = 0) (deftemplate counter (slot number)) (deffacts initial_data (counter (number 0)) ) (defrule set_counter ?f<-(counter (number ?x)) (test (= ?*lock* 0)) => (bind ?*lock* 1)