JESS: slot comparison

nikos erinis <[email protected]> Mon, 10 Oct 2011 16:19:06 +0200
Newsgroups gmane.comp.java.jess
Message-ID <CANokuTGqTNM4T9jW9BDNLuc2AyQy=m08xwPe6=-inpf5=0nQBQ@mail.gmail.com>
hi fellows,
i am new at jess. i am using it in combination with protege (jessTab).

my problem is that i want to compare the value of a slot with a specific
value.
----------------------------------------------------------
(defrule SlotWithLessValueThan
?obj <- (object (is-a Data)
(idNikos > 65000.0))
=>
(printout t (instance-name ?obj) crlf)
)
----------------------------------------------------------

when i hit (run), the rule fires but it doesnt work because i have at least
three instances with slot-values greater than 65000.0

p.s. the slot has a range float.

thx for your answers