...
Arguments are variables which are used to pass data into a function. You can optionally define the function as local to limit its scopeFor example:
Code Block | ||
---|---|---|
| ||
local arg1 = "Hello" function APPaddAPPhello(a,barg1) return aarg1 + b end local sum = APPadd(2,3) --returns 5 |
...
-- "Hello"
end |
See:
Page Tree | ||||
---|---|---|---|---|
|