Answered
dynamicly nestled cfloops
Hello Every one,
I wondered if it is possible to dynamically nestle loops.
If i get a variable equal to 2 i would like to do something like this:
<cfloop query 1>
output 1
<cfloop query 2>
output 2
</cfloop>
</cfloop>
If i get a variable equal to3 i would like to do something like this:
<cfloop query 1>
output 1
<cfloop query 2>
output 2
<cfloop query 3>
output 3
</cfloop>
</cfloop>
</cfloop>
I have no idea how to go about to do this.
Thanks for any help!
Yann.
I wondered if it is possible to dynamically nestle loops.
If i get a variable equal to 2 i would like to do something like this:
<cfloop query 1>
output 1
<cfloop query 2>
output 2
</cfloop>
</cfloop>
If i get a variable equal to3 i would like to do something like this:
<cfloop query 1>
output 1
<cfloop query 2>
output 2
<cfloop query 3>
output 3
</cfloop>
</cfloop>
</cfloop>
I have no idea how to go about to do this.
Thanks for any help!
Yann.
