loadstring
function loadstring<A...>(src: string, chunkname: string?): ((A...) -> any | nil, string?)Parameters
Examples
loadstring([[
Placeholder = {"Example"}
]])()
print(Placeholder[1]) -- Output: Examplelocal Func, Err = loadstring("Example = ", "CustomName")
print(`{Func}, {Err}`) -- Output: nil, [string "CustomName"]:1: Expected identifier when parsing expression, got <eof>Last updated