18,700
edits
m (oops) |
("return_default" is now "default", and now documented as well) |
||
Line 40: | Line 40: | ||
|- | |- | ||
|default: | |default: | ||
|{{#if:{{{ | |{{#if:{{{default|}}}|{{#ifeq:{{{type|}}}|void|error: a void function cannot have a return value|{{{default|}}}}}}} | ||
|align="center"|{{{arg1default|}}} | |align="center"|{{{arg1default|}}} | ||
|align="center"|{{{arg2default|}}} | |align="center"|{{{arg2default|}}} | ||
Line 52: | Line 52: | ||
;<tt>type</tt> | ;<tt>type</tt> | ||
:Return type of function; should be "int", "string", "float", "bool", or "void". | :Return type of function; should be "int", "string", "float", "bool", or "void". | ||
;<tt>default</tt> | |||
:Default return value of function, if there is one at the time the level starts | |||
;<tt>name</tt> | ;<tt>name</tt> |