You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lua = lupa.LuaRuntime()
lua_func = lua.eval("function (round) local min = 3 local max = 15 if round >= 3 then min = math.pow(2,3) max = 20 end return min,max end")
print(lua_func(3))
The text was updated successfully, but these errors were encountered:
Can't reproduce with Lua 5.4. What's your lua version? (lua.lua_implementation)
>>>lua_func=lua.eval("function (round) local min = 3 local max = 15 if round >= 3 then min = math.pow(2,3) max = 20 end return min,max end")
>>>lua_func(3)
(8.0, 20)
>>>lua.lua_implementation'Lua 5.4'
>>>importlupa>>>lua=lupa.LuaRuntime()
>>>lua_func=lua.eval("function (round) local min = 3 local max = 15 if round >= 3 then min = math.pow(2,3) max = 20 end return min,max end")
>>>print(lua_func(3))
(8, 20)
>>>lua.lua_implementation'Lua 5.4'>>>importsys>>>sys.version_infosys.version_info(major=3, minor=7, micro=9, releaselevel='final', serial=0)
The text was updated successfully, but these errors were encountered: