Table.fromString
Jump to navigation
Jump to search
This function converts string to a table.
If str is not a table, this function will throw an error.
Syntax
string table.fromString( string str )
Required Arguments
- str: The string to convert.
Returns
Returns table if string was successfully converted, false otherwise.
Click to collapse [-]
Shared functionfunction table.fromString(str) if type(str) ~= 'string' then return false end return (loadstring)('return '..str)() end
Author: Tracer