Hi all experts,
I would like to process String as a variable name and print something out. But I fail. Here is my example:
local Animal = “Frog and Horse and Chicken”
local Fruit = “Apple and Orange”
local Food = “Vegetable and Meat”
local objectTable = {“Animal”, “Fruit”, “Food”}
print ( objectTable[1] ) --> it will output: Animal, but what I need is to output “Frog and Horse and Chicken”
Would it be possible to treat <<value of objectTable[1] >> as a variable name: Animal to print out: “Frog and Horse and Chicken” instead of printing out: Animal
I know it is not a good programming practice. But I really need this to happen.
Many thx
Best regards,
Frankie