You almost had it:
<CFIF (data GTE 0) AND data LT 1000>
<CFSET words="small">
<CFELSEIF (data GTE 1000) AND (data LT 2000)>
<CFSET words="medium">
<CFELSE>
<CFSET words="large">
<CFIF>
Make sure to use GTE (greater than or equals) rather than simply GT (greater
than).
Norman
-----Original Message-----
From: Olson, Kelly [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 24, 2000 3: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?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.