probably marginally faster, and both more readable and communicative of
what's happening:
<cfloop list="#list#" index="id" >
<cfif evaluate("hours_period_1_#id#") eq "20">
xxxx
</cfif>
</cfloop>
<cfloop list="#list#" index="id" >
<cfif variables["hours_period_1_#id#"] eq "20">
xxxx
</cfif>
</cfloop>
Cheers,
barneyb
> -----Original Message-----
> From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 18, 2004 8:20 AM
> To: CF-Talk
> Subject: CFIF and the Evaluate function
>
> Hey everyone. I am working within a cfloop and a need to
> perform a cfif.
> here is what my code looks like
>
> <cfloop list="#list#" index="id" >
> <cfif hours_period_1_#id# eq "20">
> xxxx
> </cfif>
> </cfloop>
>
> This is generating an error. I think I need to use the
> Evaluate function but
> I'm not sure what the syntax should be. I've been messing
> around with it for
> a while and can't seem to get it quite right. Any suggestions are much
> appreciated. Thanks.
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

