function
Used to define user made functions.
Syntax
function func()
statement_list
end
func();
Inputs
- statement_list
- One or more statements to be executed when the function is called.
Example
Function creation.
function func()
print('hello world');
end
func();
hello world