I have this facts or database in prolog to see if the educations is the same or less than. for example highschool <= highschool is true and highschool <= phd is true too, but masters <= highschool is false.
edu_less(high_school, bachelor).
edu_less(bachelor, masters).
edu_less(masters, phd).
edu_lessOrEqual(X,X).
edu_lessOrEqual(X, Y):- edu_less(X,Y).
edu_lessOrEqual(X, Y):- edu_less(X,Z),
edu_lessOrEqual(Z,Y).
but this outputs
edu_lessOrEqual(masters, phd).
true;
true;
false.
when i want only one true to be printed in the output.
true;
false.