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

2006-01-18 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > (if (eq ?effRate nil) then > ;;(dts-log-error "No effective rate found for " (call > com.ngc.dts.util.DateUtils formatDateTime ?pddate)) > return ) That "return" is just the symbol "return",

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

2006-01-18 Thread erich.oliphant
Hmm, Am i doing something wrong here then, I have this code on the RHS: -- (bind ?effRate (ognl-get ?pdLocation "getEffectivePerDiemRate(#date)" "date" ?pddate)) (if (eq ?effRate nil) then ;;(dts-log-error "No effective rate found for " (call com.ngc.dts.util.DateUtils formatDateTime ?pdda

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.