Do you really need a udf for it?

<cfif x gte a and x lte b>
        ...
</cfif>

If you do...

<cfscript>
function inRange(a,min,max) {
        return a gte min and a lte max;
}
</cfscript>

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: "Bosky [mailto:"Bosky] 
> Sent: Tuesday, February 11, 2003 2:31 PM
> To: CF-Talk
> Subject: UDF: value in a specific range>
> 
> 
> Does anyone know of a function that would check if a value is 
> in within a range of two numbers?
> 
> Say I wanted to find out if ' -.50' in the range of '-1.50 and .25'. 
> 
> Regards,
> Dave Bosky
> Sr. Multimedia Web Designer
> Horry Telephone Cooperative, Inc. 
> office: (843)369-8613
> [EMAIL PROTECTED]
> 
> 
> 
> HTC Disclaimer:  The information contained in this message 
> may be privileged and confidential and protected from 
> disclosure. If the reader of this message is not the intended 
> recipient, or an employee or agent responsible for delivering 
> this message to the intended recipient, you are hereby 
> notified that any dissemination, distribution or copying of 
> this communication is strictly prohibited.  If you have 
> received this communication in error, please notify us 
> immediately by replying to the message and deleting it from 
> your computer.  Thank you. 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to