I was trying to do tests on creating equations in string forms and using them to calculate numbers. It is supposed to print "10", but it is printing "nil".
local E = "X+Y" local X = 9 local Y = 1 local A = 0
A = loadstring(E) print(A)
Do I have something not working/missing to solve the equation?

1 comment
That works. Thanks. Ill be able to use it on a larger scale soon. :)