hexagon logo

Pulling loop count as a variable

I've been working on a program off n on that runs with a variable part loop (can run 1 through 8 parts). How can I extract the loop count and assign it as a variable?

TIA
Duane
Parents
  • Let me just say that I have no experience with looping and the above worked great for me and it fits the bill for what my customer is after. One more question though, If I wanted to do nested loops with differing amounts how would I look to achieve this?

    An example would be a 5x10 grid (so 50 parts max) If the customer has varying batch sizes e.g. 47 would I do a prompt for each row?

    Thanks for any input.

    Adam
Reply
  • Let me just say that I have no experience with looping and the above worked great for me and it fits the bill for what my customer is after. One more question though, If I wanted to do nested loops with differing amounts how would I look to achieve this?

    An example would be a 5x10 grid (so 50 parts max) If the customer has varying batch sizes e.g. 47 would I do a prompt for each row?

    Thanks for any input.

    Adam
Children
No Data