evergrean100
Technical User
I would like to put this in a loop but not sure how:
My attempt:
It gives me error on my NumberFormat part where I try and put #'s inside #'s. Please advise how I can get this to work??
Code:
<cfoutput>
<cfset myavg1 = #myvar1# + 4>
avg1 = #myavg1#<br>
</cfoutput>
<cfoutput>
#NumberFormat(myvar1,"_.__")#
</cfoutput>
<br>
<cfoutput>
<cfset myavg2 = #myvar2# + 4>
avg2 = #myavg2#<br>
</cfoutput>
<cfoutput>
#NumberFormat(myvar2,"_.__")#
</cfoutput>
My attempt:
Code:
<cfloop index="i" list="1,2">
<cfoutput>
<cfset myavg#i# = myvar#i# + 4>
avg#i# = myavg#i#<br>
</cfoutput>
<cfoutput>
#NumberFormat(myvar#i#,"_.__")#
</cfoutput>
<br>
<cfoutput>
<cfset myavg#i# = myvar#i# + 4>
avg#i# = myavg#i#<br>
</cfoutput>
<cfoutput>
#NumberFormat(myvar#i#,"_.__")#
</cfoutput>
</cfloop>
It gives me error on my NumberFormat part where I try and put #'s inside #'s. Please advise how I can get this to work??