Joshua.... I think you are looking for the
OPERATOR LTE
it stands for Less Than or Equal
**************************
<CFIF number LTE 0>
This is less than or equal to zero
<cfelse>
It's bigger than Zero
</cfif>
**************************
>From the Documentation:
Operator Alternative name(s)
IS
EQUAL, EQ
IS NOT
NOT EQUAL, NEQ
GREATER THAN
GT
LESS THAN
LT
GREATER THAN OR EQUAL TO
GTE, GE
LESS THAN OR EQUAL TO
LTE, LE
At 05:33 PM 8/31/01 -0500, you wrote:
>u can do a <CFIF number GT 0 or number LT 0>
>
>
>or, do a multiplication with a number like 5. if the result is 0, then
>that number is a zero. if the result is a negative number, then that number
>is negative.
>
>there's lots of ways :)
>
>
>
>
>
>>From: "Joshua Tipton" <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: CF-Talk <[EMAIL PROTECTED]>
>>Subject: negative numbers
>>Date: Fri, 31 Aug 2001 18:07:29 -0400
>>
>>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