The multiply helper returns the product of two numeric values. Use it to compute extended prices, apply percentage-based discounts, or scale values within a flow.
Syntax
{{multiply value1 value2}}
value1 -- The first factor. Required. Accepts a number, numeric string, or field reference.
value2 -- The second factor. Required. Accepts a number, numeric string, or field reference.
Examples
Apply a percentage discount
{{multiply record.total "0.9"}}
Input: record.total is 100
Output: 90
Multiplies the total by 0.9 to apply a 10% discount.
Calculate an extended price
{{multiply record.quantity record.unitPrice}}
Input: record.quantity is "3", record.unitPrice is 19.99
Output: 59.97
Multiply a field by a hard-coded value
{{multiply "5" record.items.length}}
Input: record.items.length is 4
Output: 20
Usage notes
- Both inputs must be numeric or parseable as numeric. Non-numeric strings (e.g.
"abc") returnNaN. - When working with currency or decimal values, pass properly formatted numeric strings (e.g.
"9.99") to avoid floating-point rounding errors.