1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prolog help

Discussion in 'HTML, Graphics & Programming' started by gam3r, 20 Feb 2010.

  1. gam3r

    Mobster

    Joined: 20 Jun 2005

    Posts: 3,789

    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:
    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?