Prolog Or(;) Rule Return Multiple Result -
I have defined a rule with the operator but it returns many truths or false ones.
isloanaccept (name, guarantor, loanType, loanAmount, LoanTenure): - Customer (name, bank (_), customertype (_), citizen (CI), age (age), credit ( C), Income (I), Property (_), Bank Worker (_), CI == 'Malaysian, Age & gt; = 18, C & gt; 500, i & gt; (Loan Amount / Loan Trencher) / 12, Recycler (Guarantor, Name), ISAperserial (Loan Type, Loan Amount, Loan Tenture); Ishouseloan (LoanType, LoanAmount, LoanTenure); Isbusinessloan (LoanType, LoanAmount, LoanTenure); Iscarloan (LoanType, LoanAmount, LoanTenure). Actually, I have to see that the loan type meets the requirement of special loan or combines with the general rule. In other words, I have to define the above rule in this way. CI == 'Malaysian', Age & gt; = 18, C & gt; 500, i & gt; (LoanAmount / LoanTenure) / 12, isguarantor (guarantor, name) or (ispersonalloan (with LoanType, LoanAmount, LoanTenure); ishouseloan (LoanType, LoanAmount, LoanTenure); isbusinessloan (LoanType, LoanAmount, LoanTenure); iscarloan (LoanType, LoanAmount , LoanTenur) should return 1 correct / false by many statements in the command line. Or change the rule 1 boolean value which I do not want every one of. since the need for command line rule is checked I like this (general rules & amp; (multiple or rules)).?
how to combine many or rules that flame T1 boolean value
Please help.
Thanks.
Example
Once (ispersonalloan LoanType, LoanAmount, LoanTenure) ;k Ishouseloan (LoanType, LoanAmount, LoanTenure); Aisbias commercial loans (loan type, loan amount, loan Tencr) is Karloyn (loan type, loan amount, loan Tencr)).
Now, either "or'ed" goals are either successful or unsuccessful.
Comments
Post a Comment