Try getting rid of the tilde (negation operator) in front of ?m in your
pattern.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Smeagol k
Sent: Friday, March 18, 2005 3:53 AM
To: [email protected]
Subject: JESS: Bind


Hi,

I am rather stuck on a bind, not quite sure how the logic works here.

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

( retract ?result )
( printout t "Please enter a number between 0 and 2000" ) 
( assert ( result ( read ) ) ) )

Jess replies witha an error that you cannot begin with a negation. I
tried putting the whol thing into brackets but Jess replied it was an
invalid slot.

Help.......:-). Thanks in advance!

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

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