File ../../LibScriptableUtils-1.0/LibScriptableUtilsEvaluator-1.0/LibScriptableUtilsEvaluator-1.0.lua

Functions

LibEvaluator.ExecuteCode (self, tag, code, dontSandbox, defval, forRunnable, test) Execute some code
LibEvaluator.GetRunnable (self, tag, code, dontSandbox, defval) Retrieve a piece of code's runnable object


Functions

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

Parameters

  • self: The script environment.
  • tag: A name for your runnable
  • code:
  • dontSandbox: Whether to sandbox the execution or not
  • defval: The default value if any
  • forRunnable: Boolean indicating whether to return the actual function object or not
  • test: Whether to test the runnable before returning it. This is useful if you don't want your script to execute twice.

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

  • self:
  • tag:
  • code:
  • dontSandbox:
  • defval:

Valid XHTML 1.0!