<
From version < 1.8 >
edited by Abdelali EL MAJDOUBI
on 2023/08/03 13:19
To version < 1.6 >
edited by Abdelali EL MAJDOUBI
on 2023/08/03 13:00
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,7 +6,7 @@
6 6  
7 7  * **${ixf:sum(xpathExp1, xpathExp2)}** calculates the sum of the results obtained from evaluating "xpathExp1" and "xpathExp2".
8 8  * **${ixf:sum(xpathExp,"10")}** the result will be the sum of the result obtained from evaluating "xpathExp" and 10.
9 -* **${ixf:sum("10","12","100")}**  the result will be 122, which is the sum of the individual results of 10, 12, and 100.
9 +* **${ixf:sum("10","12","100")}**  the result will be 122, which is the sum of the individual results of "10", "12", and "100".
10 10  
11 11  Ensure that numerical values are between double quotes : ${ixf:sum("10","12","100")},
12 12  
... ... @@ -15,10 +15,8 @@
15 15  
16 16  == Example : ==
17 17  
18 -* **${ixf:sum(Documents/Order/DeliveryAddress/OrderLine/Price,"10"}**
18 +* ${ixf:sum(Documents/Order/DeliveryAddress/OrderLine/Price,"10"}
19 19  
20 -Let's suppose that the result of //Documents/Order/DeliveryAddress/OrderLine/Price// is 30, so the sum is 40.
21 -
22 22  == Note: ==
23 23  
24 24  Numerical values can be also enclosed within single quotes : ${ixf:sum('10','12','100')} **OR **mix single and double quotes, like this: ${ixf:sum("10",'12','100')}.
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian