This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
crpl:docs:add [2013/01/14 20:00] – virgilw | crpl:docs:add [2015/03/05 14:38] – Removed "Discussion" tag Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <- [[crpl: | + | <- [[crpl: |
===== add ===== | ===== add ===== | ||
Line 6: | Line 5: | ||
|Two items on the stack|The sum of two items |'' | |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 | ||
+ | 4 5 add Trace | ||
+ | #Adds 4 and 5, then traces the result. | ||
+ | </ | ||
+ | |||
+ | Same example in Warp notation: | ||
+ | < | ||
+ | showtracelog | ||
+ | add(4 5) ->result | ||
+ | Trace(< | ||
+ | </ |