golua icon indicating copy to clipboard operation
golua copied to clipboard

[Help] Getting a return value from lua

Open Beanzilla opened this issue 2 years ago • 0 comments

I have a lua script like below:

return {
    answer = 42,
    ok = true
}

I'd like to retrieve the table that the script has returned, I've seen the other issue #101, and I don't quite understand how to obtain the return value.

Perhaps I need an example of how to access it.

Just a short example will do, as once I see it I am sure I'll be able to work my way to understanding how to do it for further cases.

Beanzilla avatar Jan 24 '23 18:01 Beanzilla