All, I'm encountering a "First use of variable negated" error that I can not find an explanation for in the documentation or this list's mail archive. In summary, when first referencing a global variable in a predicate under Jess 6.0, a corresponding error is thrown.
The offending code is: (defglobal ?*mti* = "Recon_PhaseLine") (deftemplate foo (slot instanceName) ) (defrule create-salute-report-state (foo (instanceName ?*mti*)) => (printout t "bar") ) However, when I replace the predicate, "(foo (instanceName ?*mti*))," with what I believe to be the equivalent, "(foo (instanceName ?i&:(eq ?i ?*mti*)))," no error results, and the clp file compiles. Given how basic this scenario is, I can not help but think I have missed something obvious. Can anyone tell me why the initial code gives an error on compilation? Thanks in advance for your help, Steve -------------------------------------------------------------------- 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] --------------------------------------------------------------------
