what is the ?n in your rule? The problem you're having is that ?n isn't a variable. Think about where you believe you're binding ?n - in your example, it's just "there".

On Dec 30, 2008, at 4:29 AM, serendipity wrote:

hello!(sorry about my bad english) I am working first time with jess and i have some problems Here i have a deftempate : (deftemplate mitsos (slot x (type INTEGER)) ) and i created a rule (defrule myrule (mitsos(x (+ ?n 1))) => (printout t "everything is ok" )) although,the jess tell me that i have syntax error at (x (+ ?n 1))) how can i write it in appropriate way? plz help me!!!!
View this message in context: Problem with variables and rule syntax
Sent from the Jess mailing list archive at Nabble.com.

Reply via email to