![](templates/Classic/images/spacer.gif) |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Wed Oct 05, 2011 3:13 am
Nested #LOOPDB's |
If you nest #loopdb's, %key and %val always point to the key/value pair of the inner loop. Is there a way to reference the key/value pair of the outer loop from within the inner loop?
|
|
|
![](templates/Classic/images/spacer.gif) |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Oct 05, 2011 3:23 am |
Probably not. Sounds like a new set of %1...%99 variables, though. At any rate, unless %key and %val contain residual values you could probably use local variables to store the outer values.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
![](templates/Classic/images/spacer.gif) |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Wed Oct 05, 2011 3:49 am |
Yeah, that's the workaround I'm using, but I thought there might be something like %i, %j, %k, etc. for #LOOP's and #FORALL's. If there isn't, it's a feature request .
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|