MIST dostring

From DCS World Wiki - Hoggitworld.com


mist.utils.dostring

Added with: Mist 1.0
Description
Executes the string code as Lua code. The first variable returned is a boolean value indicating whether the code successfully compiled. If false, then this value will be the compilation error. If true, then any further variables returned will be whatever the code you executed returned.
Syntax
boolean, ??? mist.utils.dostring(string code )
Valid Input Values:
any table
Return value:
boolean, ???
Return example:
true, 'hello world'
Usage Examples:

do

local result, returned = mist.utils.dostring(print)

end

Notes:
Related Functions
deepCopy, dostring, basicSerialize, serialize, serializeWithCycles, oneLineSerialize, tableShow

Scripting Engine

MIST Root Page