Hi
I have tables called group1 ,2, 3 etc
group1 = {1, 14, 27, 40}
group2 = {2, 15, 28, 41}
to look up a value this works fine
myAnswer = 27
if (group1[3] == myAnswer) then – = 27 so do something
but if I use a variable to increment the group number like this it does not work
groupCount = 3
p1 = “group”…groupCount…"[3]" --what is the same as group1[3]
if (p1 == myAnswer) then – = 27 so do something
I understand I am returning a string, what do I need to do?
Thanks