CLIPS 6.0 CODE
(defrule determine-yellow-leaves
(leaves-color yellow)
=)
(assert (fired rule1))
(printout t ”WHAT IS THE COLOR OF LEISONS”crlf)
(printout t ”OPTIONS:1.YELLOW 2.OTHER”crlf)
(bind ?leison-color (read))
(if(eq ?leison-color 1) then (assert (leison-color
yellow))
else(if(eq ?leison-color 2) then (assert
(check-foot-rot))))
Above code is taken from Rice pest management
module of AgPest.