This what you mean?
<cfset rc_list = "43,3,23,77,89,56,3,23">
<cfloop index="i" list="#rc_list#" delimiters=",">
<cfif #i# EQ 3>
<!--- Do something --->
<cfelse>
<!--- Do something else --->
</cfif>
</cfloop>
Ray
At 04:38 PM 8/5/2004, you wrote:
>I'm using this to preselect checkboxes:
>
><cfif pa_LIST contains "3">checked="checked"</cfif>
>
>...but that ain't correct - because it needs to return true ONLY if the
>entire string in the list = "3".
>
>Currently, "37" or "43" would return true as well.
>
>So, for a string of "3,33,43,73" how do I get it to return true for ONLY
>"3"?
>
>I'm a little unclear as to the exact syntax...
>
>--
>Les Mizzell
>--------------------------------------------------
>Certe, toto, sentio nos in kansate non iam adesse
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- CFMX and PostgreSQL 7.X Marco Antonio C. Santos
- Re: CFMX and PostgreSQL 7.X Jochem van Dieten
- Re: CFMX and PostgreSQL 7.X Jordan Michaels
- Re: CFMX and PostgreSQL 7.X Marco Antonio C. Santos
- Re: CFMX and PostgreSQL 7.X Jochem van Dieten
- Re: CFMX and PostgreSQL 7.X Marco Antonio C. Santos
- If "x" is in a list problem Les Mizzell
- Re: If "x" is in a list pro... Dave Carabetta
- Re: If "x" is in a list... Joe Rinehart
- Re: If "x" is in a... Les Mizzell
- Re: If "x" is in a list pro... Ray Champagne
- Re: If "x" is in a list... Ray Champagne
- Re: CFMX and PostgreSQL 7.X Jordan Michaels