cfmdev
asked on
Can you write code dynamically?
Instead of writing a series of if statements, I'd like to dynamically loop over a query and have the code written to the template at run time...so in stead of writing a bunch of:
<cfif condition>do this</cfif>
<cfif condition>do this</cfif>
statements in the template I'd rather do this:
<cfloop query="somequery">
<cfif fieldname>do this</cfif>
</cfloop>
and write this to the template...
Is this possible?
<cfif condition>do this</cfif>
<cfif condition>do this</cfif>
statements in the template I'd rather do this:
<cfloop query="somequery">
<cfif fieldname>do this</cfif>
</cfloop>
and write this to the template...
Is this possible?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER