LSL feature request. The described function does not exist. This article is a feature request.
integer llEval( string code );
Forced delay: 0.0 seconds. Energy: 0.0.
Returns an integer to see the success of eval´d code.
-1 = Parse error in Eval´d code
0 = Success, but without return in Eval´d code
<lsl> default {
state_entry()
{
string code = "llOwnerSay(\"Hello World\");";
if( llEval(code) != -1 )
{
llOwnerSay("...it works !!! Try now more complex :");
llOwnerSay((string)llEval("llOwnerSay(\" must be 23\"); return 23;"));
}
else
{
llOwnerSay("Parse Error in Eval´d code");
}
}
// Output :
// Hello World
// ...it works !!! Try now more complex :
// 23 must be 23
} </lsl>
With this function its now possible to write code more dynamic. You can read your functions from a Notecard, external WEB-page and much more...
Vote for this function at :SVC-1671