running macro loop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

running macro loop

stevenbrookes
Hi,
I have a block of macro code that I want to loop so long as the current slice number is less than th number of slices in the stack. I thought this would work but it doesn't:

while (getSliceNumber()<nSlices)
{
MACRO CODE HERE
}

When I select the block and run it has a selection it loops fine; just not as part of the whole macro.

I'd be grateful for any ideas as to what I'm doing wrong


Steve