|
Jezuit Beginner
Joined: 02 Nov 2002 Posts: 27 Location: USA
|
Posted: Wed Feb 04, 2004 12:29 am
Nested #FORALL Loops |
If I have one #FORALL loop, and inside that loop I have another couple of #FORALLs, how do I access %i from the nested #FORALL?
For example:
#FORALL @vall {
#VARIABLE vcurrenttype {%i}
#FORALL %eval( %concat( "@v", %lower( %i))) {#ECHO {%ansi( high, green)@vcurrenttype - Full: %i}}
}
The %1 in red is the one that needs to be accessing the nested FORALL loop instead of the top-level FORALL.
Thanks! |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Feb 04, 2004 2:46 am |
Use %j for the next one and so on
|
|
|
|
Jezuit Beginner
Joined: 02 Nov 2002 Posts: 27 Location: USA
|
Posted: Wed Feb 04, 2004 2:48 am |
Thanks, I doubt I ever would've seen that.
|
|
|
|
|
|