Variable Variable Indexing


#1

Am I unjustified in assuming that an index to a variable array can itself be a variable? I’m trying to get something like the following to work for an array that is delimited by colons.

%Variable%ArrayChoice[%Variable%Index%]:%

Does the index need to be explicit?

I found another way to solve the problem, but it would be very nice to be able to pass a variable as an index to a variable array.


#2

I just noticed that the index needs to be unadorned. Sorry.


#3

Correct - the section between a [] is a calculation, so “3*Index” would be fine for example, but a text token would not.


#4

Thanks for replying, Peter. I don’t know how I overlooked that in the manual. It’s working splendiferously now.