for example local noob = Guest, Poop
I don't get what this means I just don't get it
for example local noob = Guest, Poop
I don't get what this means I just don't get it
Your example, as mentioned by @incapaz in his comment, would not work. The variable "noob" would be assigned to "Guest" and not "Poop." Here is what would work:
local noob, bacon = "Guest", "Poop"
When defining variables with the comma, the amount of variables must be equal to the number of values assigned or else the script would not function properly.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
They assign multiple variables in one line e.g. local one, two = 1, 2. That works. Though in your example if it's multiple values and only one variable, additional results are discarded, so "Poop" is discarded, and "noob" is assigned to "Guest".