|
| 28 Nov 2011 02:10 PM |
(For learning)
a,b,c,d = 1,2,3,4 if true then local a,b,c,d = a,b,c,d print(a,b,c,d) end print(a,b,c,d)
Output> 1234 1234
Does this mean that you can assign local variables while using a local function? |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 28 Nov 2011 02:14 PM |
affcours: local function s() local a = 5 end |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2011 02:19 PM |
Nope :3
a,b,c,d = 1,2,3,4 if true then local a,b,c,d = 2,3,4,5 print (a,b,c,d) end print(a,b,c,d)
Output: 2345 1234 |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2011 02:22 PM |
Oh my! I just realized, You could make certain functions with the same variables and just run them after instead of having to use a million different variables
:D |
|
|
| Report Abuse |
|
|