Variable Variable Indexing

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.

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

2 Likes

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

1 Like

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

1 Like