I tried use loadstring, then load, then https://github.com/jbp4444/EvalExpression evalmath
Nothing work
Please tell me , what solution is for eval math ?
print(‘1+2’) --3 ))
I tried use loadstring, then load, then https://github.com/jbp4444/EvalExpression evalmath
Nothing work
Please tell me , what solution is for eval math ?
print(‘1+2’) --3 ))
Why didn’t the GitHub library work? Looks pretty straight-forward to me:
Put EvalExpression.lua file in your project directory then:
[lua]
require( “EvalExpression” )
print (evalString(“1+2”,nil))
[/lua]
something wrong in EvalEcpression )))
i have latest Corona and latest EvalExpression…
Looks like the guy has a debugging library he hasn’t included. Just add this line after the require:
[lua]
dprint = function() end
[/lua]
Wow… 8(__)
Yes… it work )))
Thanks you
Why didn’t the GitHub library work? Looks pretty straight-forward to me:
Put EvalExpression.lua file in your project directory then:
[lua]
require( “EvalExpression” )
print (evalString(“1+2”,nil))
[/lua]
something wrong in EvalEcpression )))
i have latest Corona and latest EvalExpression…
Looks like the guy has a debugging library he hasn’t included. Just add this line after the require:
[lua]
dprint = function() end
[/lua]
Wow… 8(__)
Yes… it work )))
Thanks you