Skip to content
Starlon edited this page Nov 30, 2011 · 1 revision

Functions

<tr>
<td class="name" nowrap><a href="#LibEvaluator.ExecuteCode">LibEvaluator.ExecuteCode</a>&nbsp;(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>&nbsp;(self, tag, code, dontSandbox, defval)</td>
<td class="summary">Retrieve a piece of code's runnable object  </td>
</tr>


Functions

LibEvaluator.ExecuteCode (self, tag, code, dontSandbox, defval, forRunnable, test)
Execute some code

Parameters

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

Usage:

LibEvaluator.ExecuteCode(self, tag, code, dontSandbox, defval, forRunnable, test)

Return value:

ret1, ret2, ret3, ret4 -- return values from your code. You can pass 4 return values back from your script.
LibEvaluator.GetRunnable (self, tag, code, dontSandbox, defval)
Retrieve a piece of code's runnable object

Parameters

<li>
  self: 
</li>

<li>
  tag: 
</li>

<li>
  code: 
</li>

<li>
  dontSandbox: 
</li>

<li>
  defval: 
</li>

Clone this wiki locally