product (Multiplication)

Prev Next

See also: calc (Calculate expression)

The $product function forms the product using the specified parameters. The parameters can either be a fixed numeric value or a function that returns a numeric value. The number of parameters for this function is unlimited.

Tooltip

Syntax: $product(a[,b[,c[...]]])

Parameter

Description

a

First factor (or factors), a value (e.g. '5'), a list (e.g. $el(3,true)) or a reference to a value (e.g. $el(3)).

other parameters

Other factors of type a.

Example:$product(2,5,4) – returns 40$product($el(5,$true)) – returns the product of the values of all duplicates of the element with ID 5.

Syntax

$product(a [, b[, c[...]]])

Parameter

Name

Description

a

First factor (or factors), a value (e.g. ' 5 '), a list (e.g. $el(3,true) ) or a reference to a value (e.g. $el(3) ).

Other parameters

Other factors of type a.

Return value

The result of the multiplication as a numerical value.

Example

Multiplication of the contents of the field with Id 3 and 2 and 23.

$product( $el(3), 2, 23 )