This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:add [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:add [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | ||
| <- [[crpl: | <- [[crpl: | ||
| ===== add ===== | ===== add ===== | ||
| - | ^Arguments^Result^Notation^ | + | <-a <-b add -> |
| - | |Two items on the stack|The sum of two items |'' | + | |
| + | === How to use === | ||
| + | |||
| + | | Standard CRPL | //num num// **add ** | | ||
| + | | Warp notation | **add** (//num num//) | | ||
| === Description === | === Description === | ||
| Adds the two arguments together and pushes the result on the stack. | Adds the two arguments together and pushes the result on the stack. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| ShowTraceLog | ShowTraceLog | ||
| 4 5 add Trace | 4 5 add Trace | ||
| #Adds 4 and 5, then traces the result. | #Adds 4 and 5, then traces the result. | ||
| </ | </ | ||
| + | |||
| + | Same example in Warp notation: | ||
| + | |||
| + | <code 4RPL> | ||
| + | showtracelog | ||
| + | add(4 5) ->result | ||
| + | Trace(< | ||
| + | </ | ||