Lua is a weird language, it can actually return multiple values from functions as individual return values like so
local function foo()
local bar = 5
return bar, "hello", "world"
end
Which when called like so means that you only gain one of the values
As such to pickup all values you must either do
or
I think adding the ability to do this in blockly-lua could be handy, especially when starting to build event sensitive programs.
Lua is a weird language, it can actually return multiple values from functions as individual return values like so
Which when called like so means that you only gain one of the values
As such to pickup all values you must either do
or
I think adding the ability to do this in blockly-lua could be handy, especially when starting to build event sensitive programs.