Sum
Version 1.4 by Abdelali EL MAJDOUBI on 2023/08/02 12:52
Introduction
The sum function is used to perform the addition of two or more values, which could be either numerical values or xpath expressions.
Syntax :
- ${ixf:sum(xpathExp1, xpathExp2)} calculates the sum of the results obtained from evaluating "xpathExp1" and "xpathExp2".
- ${ixf:sum(xpathExp,"10")} the result will be the sum of the result obtained from evaluating "xpathExp" and 10.
- ${ixf:sum("10","12","100")} the result will be 122, which is the sum of the individual results of "10", "12", and "100".
Ensure that numerical values are between double quotes : ${ixf:sum("10","12","100")},
while xpath expressions should remain without any quote enclosures.
Note:
You can wrap numerical values also by single quotes : ${ixf:sum('10','12','100')} OR Mixing both quotes : ${ixf:sum("10",'12','100')},