Prolog help

Soldato
Joined
20 Jun 2005
Posts
3,824
Location
London..
I hate prolog!

Anyway, I want to write a rule, saved in a file say rule.pl....

The rule should be that if a user of a system spends more or equal to say £50, then they are a special customer. Sounds easy enough, initially I thought of:
specialCustomer(X).

specialCustmer(X) :- totalSpend(X,50)

But i'm not sure it's right and i'm not sure it will entirely work - well it doesn't but is there a simple way to write the rule I want?
 
Back
Top Bottom