#execute lua code dynamically

1 messages · Page 1 of 1 (latest)

reef mulch
#

Thanks for the help

wooden solar
#

Afaik the best you can do to circumvent this is load your script via the WebRequest and create a new dummy object with the script. This will parse and load the script and you can access variables or function from it.

sharp mesa
#

load.. as in the lua command load that you can use to create tables from string data?

#

you can encode data into jason and load jasons with api functions if that ius what you mean

wooden solar
#

The Lua load can do more than creating tables. It parses the string as Lua code that can be executed, similar to eval in other languages like JS.
Also it's JSON without the a. XD