RDNWiki: DOWScar/Functions/Function ...

RDN Wiki Home | Page Index | Recent Changes | Recently Commented | Users | Registration | Login:  Password:  

Function Data Type


Contents


Function data type is the LUA data type for an actual, well, function. A block of defined code which may perform actions and return variables.


Note: Mentions of LuaFunction are basically the same as Function.


You can declare functions locally, or as normal blocks of code, depending on what the function requires. See each definition in detail before use.


For an example function which uses local functions, see SGroup_ForEach?

Example Code

-- This is a globally declared function
function Test()

	-- This is a locally decalared function
	local localfunction = function(var1, var2)
		-- This code only executes if "localfunction" is called.
	end

end

Links


Data Types
Functions
SCAR Home
Wiki Home

End of Page

There are no files on this page. [Display files/form]
There is no comment on this page. [Display comments/form]