(waarde 1, waarde 2, ….., waarde n)
Entity | Value |
---|---|
Attribute(s) | style, href, title, alt, value, name, onclick |
Type | function, value |
Context | myshop-block:productlist, myshop-repeat-products:< conditie > |
Parameters | 1-n: numeric values |
Result | sum of the values |
With the function sum it is possible to calculate the sum of 1 through n values. The function can be used to carry out positive and negative calculation on values of functions.
The example below shows how to use the sum() function in order to lower the productlist number by 1.
The number of the previous productlist is <span style="myshop-eval:{$sum({$ProductListID},-1)}"/>
Post your comment on this topic.