Hi

I am new to Jess. I am going thru the documents provided on the web. I have a
simple question.

I created a deftemplate for automobile

(deftemplate automobile
  "A specific car."
  (slot make)
  (slot model)
  (slot year (type INTEGER))
  (slot color (default white)))

A fact

(assert (automobile (make Chrysler) (model LeBaron)
        (year 1997)))

A Function

(deffunction match () ( printout t "Match occured..." crlf))

I want to write a defrule which says that

 if automobile.make=chrysler then
        call match()

How does one write this rule and fire it (from commandline as well as from Java
code)


Thanks
Venkat

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to