I am trying to define a less than/greater than rule in CLIPS but it doesn't seem to be working. Any idea on how I can fix it. The problem seems to be occurring at defrule btwn100and120.
# (defrule part-credits
# (or (current-part "a")
# (current-part "b")
# (current-part "c"))
# =>
# (bind ?reply (get-text-from-user "How many points did you achieve?"))
# (assert (part-credits ?reply))
# )
#
# (defrule btwn100and120
# (part-credits => 100)
# (part-credits <= 120)
# =>
# (bind ?reply (get-text-from-user "Did you Part A before the changes? (y/n)"))
# (assert (btwn100and120 ?reply))
# )
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to define a less than/greater than rule in CLIPS but it doesn't seem to be working. Any idea on how I can fix it. The problem seems to be occurring at defrule btwn100and120.
Last edit: Gary Riley 2012-11-25
Thanks for your reply Gary. This is my code in full. Unfortunately it still doesn't work:
Last edit: methuselah 2012-11-26
The rule portion appears to work OK. There is nothing in your code that would create a bsc-current-part fact, so perhaps that is your issue.
Last edit: Gary Riley 2012-11-26