JESS: salience

2006-01-11 Thread [EXTERN] Manuel Kollmuß
hi jess users   I want to change the salience of a rule during process.   e.g.   (defrule number1     (salience 0)   => (if   … then (“increase salience”)   else (“decrease salience”))   How can I do this so that the new salience is save even after a restart of the p

JESS: Checking for null/nil on the RHS

2006-01-11 Thread erich.oliphant
I have a defrule like this: ( ... => ... (bind ?objVal (get ?obj property)) ... ) I need to make sure that ?objVal is not nill before proceeding further. I don't see any functions that might help me here. (if (eq ..)) doesn't work since it's going to try to call Object.equals(). There a

Re: JESS: Checking for null/nil on the RHS

2006-01-11 Thread ejfried
I think erich.oliphant wrote: > I need to make sure that ?objVal is not nill before proceeding further. I > don't see any functions that might help me here. (if (eq ..)) doesn't work > since it's going to try to call Object.equals(). Actually, "eq" works fine.