« Return to Thread: JESS: global variable comparisons with = and <>

Re: JESS: global variable comparisons with = and <>

by Ana Tanasescu :: Rate this Message:

Reply to Author | View in Thread

Hye,
 
I have read your message and I looked a little in my documentation about Jess.
In the book Jess in Action the author has written about Matching global variables the followings:
 
"If you match to a defglobal with a pattern like (score ?*x*), the match only considers the value of the defglobal when the fact is first asserted. Subsequent changes to the defglobal’s value will not invalidate the match—if the rule was activated based on the value of the defglobal, it stays activated even if the defglobal’s value changes. The match does not reflect the current value of the defglobal, but only the value at the time the matching fact was asserted."

I hope you will find a solution for your problem.
 
Ana Tanasescu


Never miss a thing. Make Yahoo your homepage.

 « Return to Thread: JESS: global variable comparisons with = and <>

LightInTheBox - Buy quality products at wholesale price