Syntax
arithmethic_expressions ::= ( '+:' | '-:' | '*:' | '/:' | '%:' ) expression expression [ expression ]*
Description
Some math operations can be done using arithmethic expressions:
+: x y
-> add x and y-: x y
-> subtract y from x*: x y
-> multiply x and y/: x y
-> divide x by y%: x y
-> x mod y
You can use more than 2 values to operate. Parenthesis can be used.
Differences with ZPT
This expressions does not exist in ZPT.
Examples
Some examples in data-content:
<div data-content="-: assets liabilities">using vars</div> <div data-content="*: 2 children">using a literal and a var</div> <div data-content="+: 1 number1 number2">using more than 2 values</div> <div data-content="+: 1 ( *: number1 number2 )">using parenthesis</div>