Hi all,

what4s wrong with the following code?

(defglobal ?*xxx* = 12)


(assert(the-first-fact))



(defrule check-number
?f <- (the-first-fact)
=>
(retract ?f)
(if(floatp(?*xxx*))
then
(printout t "its a number" crlf)
else
(printout t "its not a number" crlf)
)
)


(run)


I want to use the values of some global variables for arithmetic operations, but it 
doesn4t work the way I thought it would.
Thanks for any help.

Vincent


______________________________________________________________________________
WEB.DE MyPage - Ultimatives Kommunikationstool! Ihre Message sofort
online! Domain aenderbar! http://www.das.ist.aber.ne.lustige.sache.ms/

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to