Is there a command like loadstring()? I want to run user-assigned code. Much like if they ran it in the command bar.
Does Codea even support this?
Is there a command like loadstring()? I want to run user-assigned code. Much like if they ran it in the command bar.
Does Codea even support this?
Search the forum and you’ll find lots of examples
local function()
???
@TokOut - you have absolutely no idea what we’re talking about, do you?
There is indeed a loadstring
command for executing strings. Lots of examples if you google.
I searched in the forums for loadstring, there was a link for learning lua, and there was a code including local function()
, what is that?
@TokOut that is simply making a localized function. Right now that code really doesn’t do much. A localized function can only be ran in the same function/event.