I want to be able to change a variable name within a repeat loop if i can somehow.
I need to assign data to a a number of different variables so i can use them in an answer dialogue
Here is the bare bones basics of what i would like to do, but it see's that (tVar & x) a garbage, and not my expected , tVar1, tVar2, tVar3 as it loops through the repeat.
Code: Select all
local tvar
repeat with x = 1 to 3
put 10 + x into (tvar & x)
end repeat
answer "a list of three choices" with tvar1 or tVar2 or tVar3 titled "A way to step var names"