Jess versions prior to 6.x do not support the OR conditional element;
looks like you're using 5.x . In general, Jess supports precisely what
is described in the manual that comes with it; nothing more, nothing less.


I think Mike Leiper wrote:
> Hello Jess Users,
> 
> I'm new to JESS and playing with templates and rules. I'm trying to
> create a
> rule that performs and 'or' on two facts:
> 
> ; Fact Templates
> (deftemplate gross "gross product"
>  (slot value (type INTEGER))
> )
> 
> (deftemplate cost "cost product"
>  (slot value (type INTEGER))
> )
> 
> ;Complex Alerts Alerts of Alerts
> (defrule Example_OR_Alert
>  (or (gross (value ?x))
>       (cost  (value ?y)))
>  =>
> ; (send-alert 46 2 2)
>  (printout t "Complex_Alert 100 " crlf)
> )
> 
> JESS does not accept my rule definition. I receive the following error
> message:
> 
> Jess reported an error in routine Jesp.parsePattern while executing
> (batch "templates1.txt").
>   Message: Bad slot value .
>   Program text: ( defrule Example_OR_Alert ( or (  at line 12.
>  jess.Value jess.Jesp.parseSexp()
>  jess.Value jess.Jesp.parse(boolean)
>  void jess.Main.execute(boolean)
>  void jess.ConsoleApplet.run()
>  void java.lang.Thread.run()
> 
> If someone could please help me with my rule definition using the 'or'
> function, I would greatly appreciate it.
> 
> Thank you,
> mike
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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