modding:function:add
add
add
add
Syntax | (add x1 x2 … xn) → z |
Arguments | x1: A number to add. x2 … xn: Optional numbers to add. |
Returns | z: The sum of all the numbers passed in |
Category | 0.99, math |
Description | Sums up the numbers passed to it and returns the result. |
Example
(add 1 2 3 4 5)
returns the number 15
(add 1)
returns 1
Return to Functions list
modding/function/add.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1