LANGUAGE » LUA

Function

Basic

Declaration:

lua
function sum(a, b)
    return a + b
end

Calling the function:

lua
local result = sum(8, 16)