On Wed, 2004-02-18 at 08:19, Wurst, Keith D. wrote:
> 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>

I have never seen left hand evaluation in any language aside from cold
fusion -
try:
<cfloop list="#list#" index="id" >
<cfif "hours_period_1_#id#" eq "20">
xxxx
</cfif>
</cfloop>

I thought it was pretty cool when I saw you could do that. But you might
want to use a structure instead - just my opinion.

--
Vale,
Rob

Luxuria immodica insaniam creat.
Sanam formam viatae conservate!

http://www.rohanclan.com
http://treebeard.sourceforge.net
http://ashpool.sourceforge.net
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to