[[modding:function:add]]
=== add ===
[[modding:function: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 functions|0.99]], [[math functions|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