Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[solved] defining multiple variables in one line?

Asked by 1 year ago
Edited 1 year ago
local x, y, z = 1,2,3 --example code

i'm wondering how the scope of defining multiple variables in one line works so would y & z also be local like x or global?

edit: in my testing they're all local but im not 100% sure

0
They are all local, yes Ziffixture 6913 — 1y
0
i thought so, thanks ZeroToH3ro 82 — 1y

1 answer

Log in to vote
0
Answered by 1 year ago

it took me longer than it needed to but they're all local, im 100% sure now. post is here if anyone needs it in the future

Ad

Answer this question