Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
inputString = "((1==2) or ((\"Cat\" == \"Cat\") and 2234 ==1))"
if inputString then
do stuff
end
if evaluateString(inputString) then
do stuff
end
inputString = " (1 ==2) or (1!=1)"
if loadstring("if (" + inputString + ") then return true; else return false; end ") then
doStuff();
end
Posted by: xenoputtss on Feb 7 2006, 12:29 PM
perhaps this would work?
inputString = " (1 ==2) or (1!=1)"
if loadstring("if (" + inputString + ") then return true; else return false; end ") then
doStuff();
end
now, i just wish I could test lua code on my work pc.....
inputString = "((1==2) or ((\"Cat\" == \"Cat\") and 2234 ==1))"
RunScript([[
if(]]..inputString..[[) then
doStuff();
end
]]);
[/pre]1 to 3 of 3