No.  You cannot do this.  Cfswitch/cfcase tags check for equality.  You
can't do a GT or LT comparasion with cfcase.  For this kind of conditional
logic you have to use a set of if/elseif/else statements, or list all of the
numbers between 400 and 499 comme ca.

<cfswitch expression="#Q_One.Attrib#">
  <CFCase
value="400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,4
17,418,419,420,421,...">
    Women's Footwear/Walking
  </cfcase>
  <CFCase
value="700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,7
17,718,719,720,720,...">
    Women's Footwear/Running
  </cfcase>
  <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>

--K


-----Original Message-----
From: Paul Sizemore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 11:39 AM
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/[email protected]/
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/[email protected]/
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/[email protected]/
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/[email protected]/
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