<cfif (data gt 0) and (data lt 1000)>
        <CFSET words="small">
</cfif>

<cfif (data gt 1000) and (data lt 2000)>
        <CFSET words="medium">
</cfif>

<cfif data gt 2000>
        <CFSET words="medium">
</cfif>

--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net 
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------


> -----Original Message-----
> From: Olson, Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 24, 2000 12:51 PM
> To: CF-Talk
> Subject: Newbie" CFIF for range of data
> 
> 
> How would you write a conditional statement like this:
> 
> <CFIF data is greater than 0 and less that 1000>
>     <CFSET words="small">
> <CFELSE IF data is greater than 1000 and less than 2000>
>     <CFSET words="medium">
> <CFELSE>
>     <CFSET words="large">
> </CFIF>
> 
> 
> All of the examples seem to only show an "IS" value. not  "IS" range.
> 
> Kelly
> 
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to