RE: Newbie CFIF for range of data

2000-09-24 Thread Mark Warrick

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=listsbody=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?sidebarRstsbodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Newbie CFIF for range of data

2000-09-24 Thread Norman Elton

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=listsbody=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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Newbie CFIF for range of data

2000-09-24 Thread Jim McAtee

If you're not worried about the number being negative:

cfif data gte 2000
  cfset words = "large"
cfelseif data gte 1000
  cfset words = "medium"
cfelse
  cfset words = "small"
/cfif

Jim


-Original Message-
From: Olson, Kelly [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: Sunday, September 24, 2000 1:50 PM
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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Newbie CFIF for range of data

2000-09-24 Thread Norman Elton

Jim got it even better than I did :). CFIF only evaluates the first block
matching the specified condition, and skips the rest.

Norman Elton
Information Technology
College of William  Mary

-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 24, 2000 4:13 PM
To: CF-Talk
Subject: Re: Newbie" CFIF for range of data


If you're not worried about the number being negative:

cfif data gte 2000
  cfset words = "large"
cfelseif data gte 1000
  cfset words = "medium"
cfelse
  cfset words = "small"
/cfif

Jim


-Original Message-
From: Olson, Kelly [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Date: Sunday, September 24, 2000 1:50 PM
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=listsbody=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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Newbie CFIF for range of data

2000-09-24 Thread Mark Adams

Kelly,

Make sure you look at the reference for attributes and tags and study them,
rather than getting so caught up in examples.

Would look like this:
CFIF (data LT 1000) AND (data GTE 0)
CFSET words="small"
CFELSEIF (data LT 2000) AND (data GTE 1000)
CFSET words="medium"
CFELSE
CFSET words="large"
/CFIF

-Mark :o)


 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=listsbody=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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.