|
>Is there a way to evaluate a Lua expression in the form of a string? There >only seems to be dostring() which will give an error if you pass it >something like "2+3*5". Try dostring"return 2+3*5" Or function eval_string (str) return dostring ("return "..str) end --lhf