I think Smeagol k wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
> 
> I am rather stuck on a bind, not quite sure how the logic works here.
> 

Is this an intentional pun ("bind" being an important Jess function?)


> ?result <- ( result ~ ?m & : ( < ?m 200 ) & ~ ?m & : ( > ?m 200 ) )


The above pattern matches an ordered fact with head "result" and one
datum in the multislot. The following must be true about
that datum for the pattern to match, reading from left to right:

1) The datum is not equal to ?m; but ?m is undefined, hence the error
2) The datum is less than 200
3) The datum is not equal to ?m (we already said that!)
4) The datum is greater than 200

2 and 4 are contradictory, so I'm not sure what you're trying to
express here. But based on your prompt, I think you want to say that
the datum is less than 2000 and greater than 0; I'll assume
"inclusive". That would look like

?result <- (result ?m & :(and (>= ?m 0) (<= ?m 2000)))

which reads "the datum, call it '?m', is greater or equal to 0 and
less than or equal to 2000."

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

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