Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagelua
local arg1 = "Hello"

function APPaddAPPhello(a,barg1)
  return aarg1 + b 
end 

local sum = APPadd(2,3) --returns 5

...

-- "Hello"
end 

See:

Page Tree
root@self
startDepth1