API Reference

Arguments and Parametres

Submitted by FireBlaze on Sat, 06/15/2019 - 20:04

A parameter is properly known as the variable(s) in the definition of a function. An argument is properly known as the values that appear in a function getting called.Calling a function with arguments is very simple, and is similar to calling a function with no arguments. This is the basic sytanx for calling a function with arguments:

———————————————————————————————————————————————————

local function myFunction(x) <— x is the parameter 

      print(x)

end)