Hello to all, i need to design a rules which test a loan is a car loan or not.
carLoan(flexiCar,minLoanAmount(20000),maxTenure(12) ).
iscarloan(X, Y, Z) :- carLoan(X, Y >= minLoanAmount(20000), Z =<(maxTenure(12)) ).
iscarloan(X, 25000, 10).
I need to test the Y and Z variable against the structure from the fact inside the rule.
How to achieve that ?
Thanks.