Works perfectly for me -- the script below shows that it behaves
exactly as expected.
----------------------------------------------------------------------
Jess, the Java Expert System Shell
Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
Jess Version 6.0 12/7/2001

Jess>  (deffunction checkMin(?x)(
 if (<= ?x 20)
then
(printout t "Minimum value Failed!!" crlf)
))
TRUE
Jess> (checkMin 21)
FALSE
Jess> (checkMin 20)
Minimum value Failed!!
Jess> (checkMin 19)
Minimum value Failed!!
Jess> (exit)
----------------------------------------------------------------------


I think Rengasamy, Thirumurugan wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> hi, 
> 
> I have a deffunction as shown below; If I'm passing 20 as a parameter in
> to the function , its failing. It is working for values less than 20.
> But I'm checking for  "less than or equal". I'm calling this function by
> passing the parameter from my Java class.
> 
> Line 1 :   (deffunction checkMin(?x)( 
> Line 2 :   if (<= ?x 20) 
> Line 3 :   then
> Line 4 :   (printout t "Minimum value Failed!!" crlf)
> Line 5 :   ))
> 
> Do I need do change the Line 2 to fix this?
> 
> With Thanks,
> 
> Thiru Murugan
> S/W Developer @ ChipData, Inc.
> Voice: 214 615 8646
> 
> 
> --------------------------------------------------------------------
> 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