<cfset intFoo = "-3">

<cfif isNumeric(intFoo) and intFoo lte 0>
        the value is 0 or a negative number
</cfif>

-Tyson

-----Original Message-----
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 5:07 PM
To: CF-Talk
Subject: negative numbers


I want to check to see if this value is a 0 or a negative number.  How would
I do this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to