ROPE Language Reference - "add"

The "add" action adds two or more numbers together.

Without AnchorBrackets, it adds the top two numbers of the stack and pushes back the result.

With AnchorBrackets it adds all the numbers between them and pushes back the result.

Here is an example of each of these two styles..

 7 11 add println          # -- prints: 18

 add(1 3 7 11) println     # -- prints: 20

It is an error to attempt to add non-integer values.

See Also

sub div mod mult