Lua
up:: Programming ⚐
Basic init.lua
Snippets
Variables
Tables
Loops
Functions
Functions don’t do anything unless you call on them.
function
anyName
- Name of the function
(a , b)
- Parameters (can be empty)
sum = a + b
return sum
- function ignores everything after `return“
test = anyName(10 , 20)
- calling on the function with variables 10 , 20
print(test)
- Printing the output of calling on the function