Class Compare

  • All Implemented Interfaces:
    KnowledgeBaseConsumer, PredicateFactory

    public final class Compare
    extends AbstractSingleResultPredicate
    compare(X,Y,Z) - compares arguments.

    Compares the second and third arguments.

    • If second is greater than third then attempts to unify first argument with >
    • If second is less than third then attempts to unify first argument with <
    • If second is equal to third then attempts to unify first argument with =