MIST basicSerialize

From DCS World Wiki - Hoggitworld.com
Revision as of 22:50, 13 April 2018 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.utils.basicSerialize

Added with: Mist 1.0
Description
Returns tostring(val), unless val is nil or a string. In the case of nil, it returns an empty string (this will PROBABLY be changed to return ‘nil’ in future versions). In the case val is a string, it

returns string.format('%q', s).

Syntax
string mist.utils.basicSerialize(value val )
Valid Input Values:
any non-string value
Return value:
string
Return example:
Usage Examples:

do

local result = mist.utils.basicSerialize(something)

end

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

Scripting Engine

MIST Root Page