View Single Post
Old 06-08-2019, 04:56 AM   #1
Human being with feelings
mpl's Avatar
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 2,463
Default Lua Assert/Load analog in EEL2 (JSFX)?

Is there a way to execute string as code, like this?

string = strcpy(#,'function(x) return x*2 end');
new_function = assert(string);
out_val = new_function(2);
> 4
SoundCloud | MPL Scripts discussion | ReaPack | Donate
mpl is offline   Reply With Quote