Answered
Dynamic <cfif queryname["answer" & i] EQ 1>
Is it possible to dynamically loop a <cfif
queryname["answer" & i] EQ 1>? Well not for me right now :(
I use this code:
(votecheck is a query)
<cfloop index="i" from="1" to="#application.dbquestions#">
<cfif votecheck["answer" & i] EQ 1>
<cfset voteranswer = votecheck["answer" & i]>
</cfif>
</cfloop>
Earlier i learned about array notation, but that seems not to work in this situation....
I use this code:
(votecheck is a query)
<cfloop index="i" from="1" to="#application.dbquestions#">
<cfif votecheck["answer" & i] EQ 1>
<cfset voteranswer = votecheck["answer" & i]>
</cfif>
</cfloop>
Earlier i learned about array notation, but that seems not to work in this situation....