asianpunk
|
  |
| Joined: 15 Dec 2010 |
| Total Posts: 150 |
|
|
| 31 Dec 2011 05:56 AM |
Hi guys can we make a function like that
function Add(Var1,Var2) if Var1 == nil then Var1 = math.random(1,100) end if Var2 == nil then Var2 = math.random(1,100) end Return Var1 + Var2 end
so my question is can we make function with argument and make it work if there is no argument gived by that way ? |
|
|
| Report Abuse |
|
| |
sdfgw
|
  |
 |
| Joined: 08 Jan 2009 |
| Total Posts: 41681 |
|
| |