please I am new in CLIPS and I would like to define the following rule in CLIPS:
if x has father y and y has brother z then
x has uncle z.
I assume that I define a class Person. so x, y and z are instances of Person,
Thanks in advance for your help.
(object (is-a PERSON) (name ?person) (father ?father))
(object (is-a PERSON) (name ?father) (brothers $? ?brother $?))
(printout t ?brother " is the uncle of " ?person crlf))
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.