Difference between revisions of "User:Demonnic"

From Mudlet
Jump to navigation Jump to search
(Created page with "<syntaxhighlight> for k,v in pairs(_G) do echo("ack!") end </syntaxhighlight>")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<syntaxhighlight>
+
==functionName==
for k,v in pairs(_G) do
+
;functionName(arg1, arg2)
  echo("ack!")
+
: What the function does.
end
+
: Returns whatever the function returns.
</syntaxhighlight>
+
: See also: [[Manual:Lua_Functions#paste|paste]]
 +
<br/>
 +
 
 +
;Parameters
 +
* arg1:
 +
: What arg1 is/does. Passed as a string.
 +
* arg2:
 +
: What arg2 is/does. Passed as a string.
 +
<br/>
 +
 
 +
;Examples
 +
<lua>
 +
--a small example snippet of the function in action
 +
--the comments up top should introduce it/explain what the snippet does
 +
functionName("arg1", "arg2")
 +
</lua>

Latest revision as of 13:35, 12 June 2011

functionName

functionName(arg1, arg2)
What the function does.
Returns whatever the function returns.
See also: paste


Parameters
  • arg1:
What arg1 is/does. Passed as a string.
  • arg2:
What arg2 is/does. Passed as a string.


Examples

<lua> --a small example snippet of the function in action --the comments up top should introduce it/explain what the snippet does functionName("arg1", "arg2") </lua>