lua-users home
lua-l archive

Turning a string into a variable

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Let's say:
x = "foo"
But now I want to see if foo is an assigned variable (i.e. foo ~= nil 
--- but I obviously don't know what x is equal to so I can't do this) 
So is there someway to find out if a string is also a variable, and if
so to get at the contents of that variable.
Praveen 

AltStyle によって変換されたページ (->オリジナル) /