<cfset qty1_value=1>
<cfset qty2_value=2>
<cfset qty3_value=3>
<cfloop from="1" to="3" index="idx">
<cfoutput>#variables['qty'&idx&'_value']#</cfoutput>
</cfloop>
Removes the dependancy on the evaluate function.
-----Original Message-----
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 10:00 AM
To: CF-Talk
Subject: RE: CFIF inside of CFLOOP
Peter,
You can use Evaluate....
<cfloop from="1" to="15" index="x">
#Evaluate('Qty' & x & '_Value')#
</cfloop>
The above would output....th VALUES of the variables:
Qty1_Value
Qty2_Value
Qty3_Value
Qty4_Value
Qty5_Value
HTH,
Mike
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- CFIF inside of CFLOOP Peter Filias
- Re:CFIF inside of CFLOOP Michael Dinowitz
- RE: CFIF inside of CFLOOP Tim Blair
- Re:CFIF inside of CFLOOP Peter Filias
- RE: CFIF inside of CFLOOP Tangorre, Michael
- Bryan F. Hogan