Or use ListFind()....LOL - forgot about that one.

At 04:49 PM 8/5/2004, you wrote:
>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]

Reply via email to