<cfset excludeList = "1,4,5,7">

<select name="test">
<cfloop from="1" to="10" index="i">
<cfif listContains(excludeList, i)>
<cfelse>
<cfoutput>
<option value="#i#">#i#
</cfoutput>
</cfif>
</cfloop>
</select>



----- Original Message -----
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 8:34 AM
Subject: looping through array


> hi there...
>
> lets say I have a list:
>
> 1,2,4,6
>
> and I drop those values into an array
>
> <cfset CurrentSwitches=ArrayNew(1)>
>
> and then I want to loop through that array
> to output this
>
> <select name="SwitchNumber">
> <option value="3">
> <option value="5">
> <option value="7">
> <option value="8">
> </select>
>
> leaving out those values above, since I already have
> switches for those numbers...how the hizzeck would I perform
> this, this is killin me.....thanks....
>
>
> ..tony
>
> Tony Weeg
> Senior Web Developer
> Information System Design
> Navtrak, Inc.
> Fleet Management Solutions
> www.navtrak.net
> 410.548.2337
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to