If I run the following commands,
(deftemplate stock
"Stock Symbol"
(slot symbol)
(slot last (type FLOAT))
(slot open (type FLOAT))
(slot eps (type FLOAT))
(slot pe (type FLOAT)))
(defrule exists-alert
(stock (last ?x) (symbol ?y))
(test (> 100 ?x))
(test (eq "IBM" ?y))
=>
(printout t ?x ?y " was triggered!" crlf))
(assert (stock (symbol IBM) (last 100.2) (open 100.10)))
(assert (stock (symbol MSFT) (last 67.5) (open 100.10)))
Do you know why I don't get a trigger when I assert that IBM's last is
100.2.
Also, is there a way to define a trigger that says when IBM > 100 & MSFT <
67?
I'm having a hard time doing query like functions using triggers I guess.
Thanks so much in advance.
--
Jordan Redner
Engineering Manager, Lycos Finance
Terra Lycos
http://finance.lycos.com
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------