-
Notifications
You must be signed in to change notification settings - Fork 0
UtilsEvaluator
Starlon edited this page Nov 30, 2011
·
1 revision
<tr>
<td class="name" nowrap><a href="#LibEvaluator.ExecuteCode">LibEvaluator.ExecuteCode</a> (self, tag, code, dontSandbox, defval, forRunnable, test)</td>
<td class="summary">Execute some code </td>
</tr>
<tr>
<td class="name" nowrap><a href="#LibEvaluator.GetRunnable">LibEvaluator.GetRunnable</a> (self, tag, code, dontSandbox, defval)</td>
<td class="summary">Retrieve a piece of code's runnable object </td>
</tr>
- LibEvaluator.ExecuteCode (self, tag, code, dontSandbox, defval, forRunnable, test)
-
Execute some code
LibEvaluator.ExecuteCode(self, tag, code, dontSandbox, defval, forRunnable, test) ret1, ret2, ret3, ret4 -- return values from your code. You can pass 4 return values back from your script.
<li> self: The script environment. </li> <li> tag: A name for your runnable </li> <li> code: </li> <li> dontSandbox: Whether to sandbox the execution or not </li> <li> defval: The default value if any </li> <li> forRunnable: Boolean indicating whether to return the actual function object or not </li> <li> test: Whether to test the runnable before returning it. This is useful if you don't want your script to execute twice. </li> - LibEvaluator.GetRunnable (self, tag, code, dontSandbox, defval)
-
Retrieve a piece of code's runnable object
<li> self: </li> <li> tag: </li> <li> code: </li> <li> dontSandbox: </li> <li> defval: </li>