It is close to the end of the day, but I think your suggestion will work.
Thanks a lot for the help. 

-----Original Message-----
From: Hayes, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 3:10 PM
To: CF-Talk
Subject: RE: CFCase - Number in range of values

You could move those to the <CFDEFAULTCASE>.

<CFDEFAULTCASE>
        <CFIF Q_One.Attrib GTE 400 AND Q_One.Attrib LTE 499>
               
        <CFELSEIF Q_One.Attrib GTE 700 AND Q_One.Attrib LTE 799>
               
        <CFELSE>

        </CFIF>
</CFDEFAULTCASE>

If you know that the appropriate value can always be determined by the first
digit, you could do another <CFSWITCH> using left(attrib,1) as your
expression.

-----Original Message-----
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 1:39 PM
To: CF-Talk
Subject: RE: CFCase - Number in range of values


Let me expand to better represent my code:

<cfswitch expression="#Q_One.Attrib#">

<!--- How do I do the following? --->
                <CFCase  GT value="400" AND LT value="499">Women's
Footwear/Walking</cfswitch>
                <CFCase  GT value="700" AND LT value="799">Women's
Footwear/Running</cfswitch>


                <cfcase value="BBS">Baseball/Softball</cfcase>
                <cfcase value="WRE">Wrestling</cfcase>
                <CFCase Value="323">Kid's Footwear/Infant Boy's</cfcase>
                <CFCase Value="328">Kid's Footwear/Infant Girl's</cfcase>

                <CFCase Value="605">Kid's Apparel/Boy's Apparel</cfcase>

<cfdefaultcase>Other Category</cfdefaultcase>
</cfswitch>

-----Original Message-----
From: Hayes, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 11:01 AM
To: CF-Talk
Subject: RE: CFCase - Number in range of values

You can use <CFDEFAULTCASE>.

-----Original Message-----
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 10:10 AM
To: CF-Talk
Subject: CFCase - Number in range of values


Is there any way to do the following?  (I know case values must be
constants). Will I need to test for this possibility before it goes into the
CF switch?

<CFCase  GT value="400" AND LT value="499">
                My Code
</CFCASE>

pbs

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to