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 2 years ago
Edited 2 years 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 — 2y
0
i thought so, thanks ZeroToH3ro 82 — 2y

1 answer

Log in to vote
0
Answered by 2 years 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