I am working on a project and would like to find out why my if statement isn't working. My code is the following:
(defrule accept-location-lessthan-path
(or (geological-survey-lessthan-path-is stable) (geological-survey-lessthan-path-is Stable))
=>
(if (production-is medium)
then
(assert (medium-outcome))
(printout t "Second best "crlf)
else
(if (production-is high)
(assert (ideal-location))
(printout t "
Accepted! The location is ideal; you can start building now! :) " crlf))))
The error it gives me is (Missing function declaration for production-is). Could someone advice me on what the problem is. Thank you.