나는 그가 아버지 인 경우 그가 다른 남성이라고 말하고 싶다 if_then_else와 성별 여성프롤로그,
father(pedro-i,beatriz(1347)).
father(pedro-i,joão(1349)).
father(pedro-i,dinis(1354)).
father(pedro-i,joão_grão_mestre_da_ordem_de_avis).
mother(constança(1320),luis).
mother(constança(1320),maria(1342)).
% I want to say that if is the father then is male else is a female
IF_then_else(X,Y,Z) :- father(X,Y),male.
IF_then_else(X,Y,Z) :- female.