View Single Post
Old 06-08-2019, 04:56 AM   #1
mpl
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?

Code:
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