→Notes: I think only the first 4 values will be assigned to x1, x2, x3 and x4.
No edit summary |
(→Notes: I think only the first 4 values will be assigned to x1, x2, x3 and x4.) |
||
| Line 31: | Line 31: | ||
A simple fix that works could be adding an empty value. | A simple fix that works could be adding an empty value. | ||
t = {1,nil,"something",nil,1) | t = {1,nil,"something",nil,1) | ||
x1,x2,x3,x4 = unpack(t) -- returns 1,nil,"something",nil | x1,x2,x3,x4 = unpack(t) -- returns 1,nil,"something",nil | ||
--Peeka, sentinels | --Peeka, sentinels | ||
{{LUA}} | {{LUA}} | ||