How about using a multdimensional array? See mcg’s answer at How to change the number of variables based on the iteration number? .
How about using a multdimensional array? See mcg’s answer at How to change the number of variables based on the iteration number? .