Difference between revisions of "Module:Sandbox/Luis150902/doc"
< Module:Sandbox | Luis150902
Jump to navigation
Jump to search
blackwiki>Renamed user awfwvowjvwrvnwio |
blackwiki>Renamed user awfwvowjvwrvnwio |
||
| Line 18: | Line 18: | ||
Performs the operation specified by the first argument in the remaining arguments. | Performs the operation specified by the first argument in the remaining arguments. | ||
| − | Available operations: [[+|"+"]], [[-|"-"]], [[*|"*"]], [[ | + | Available operations: [[+|"+"]], [[-|"-"]], [[*|"*"]], [[Division|"/"]], [[Modulus|"%"]], "!" ([[boolean]] NOT). |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
Revision as of 16:59, 23 September 2015
Usage
{{#invoke:Sandbox/Luis150902|function_name|args}}
, where function_name is "f" followed by a natural number (N) and args is a pipe-separated list of arguments.
N = 1
Gets the length, in characters, of the first argument.
N = 2
Counts its arguments.
N = 3
Performs the operation specified by the first argument in the remaining arguments.
Available operations: "+", "-", "*", "/", "%", "!" (boolean NOT).