Hi again
Tor Olav Kristensen wrote:
> Hi
>
> But what if the loop control variable is a vector that is shared
> between several nested loops? (See my example macro below.)
...
> #local Cntv = Nullv;
> ...
I forgot something: Nullv = <0, 0, 0>
So the above statement resets all 3 components of the counter vector.
I think that it sometimes is nice with a vectors as a counter variables,
because it makes it possible to write compact code where a needed
vector changes as a result of loop counts.
Tor Olav
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html
Post a reply to this message
|