[Resolved] A variable calling a specific function or table

Is there a way to have a variable call upon a table or function? For example I have around 100 tables, for the purpose of this lets call them each testOne, testTwo etc. Now I have another table that has all the table names. So

test = { testOne, testTwo ..etc }  
  
--In a function I have a:  
chosenOne = test[theNumber]  
  
formula = chosenOne[50]  

If I put formula = chosenOnethen I get testFifty or whatever, but if I make it chosenOne[50] it will try to call number 50 from the table chosenOne, which makes sense but since it doesn’t exist I was hoping it would try calling whatever chosenOne was equal too. So my question is, is there any way to do something like this? If it doesnt work for tables, how about functions? Thanks in advance.

[import]uid: 77199 topic_id: 29825 reply_id: 329825[/import]

Figures I figure it out a few minutes later…
Managed to find out two ways to do it

test = { testOne[theNumber] }  
  
--second was  
  
formula = test[theNumber][50]   

[import]uid: 77199 topic_id: 29825 reply_id: 119602[/import]

Always the way, eh? Thanks for updating the thread with solution :wink: [import]uid: 52491 topic_id: 29825 reply_id: 119669[/import]

Figures I figure it out a few minutes later…
Managed to find out two ways to do it

test = { testOne[theNumber] }  
  
--second was  
  
formula = test[theNumber][50]   

[import]uid: 77199 topic_id: 29825 reply_id: 119602[/import]

Always the way, eh? Thanks for updating the thread with solution :wink: [import]uid: 52491 topic_id: 29825 reply_id: 119669[/import]