Combining and nesting templating functions
Combine and nest templating functions in Hoverfly Cloud simulations for complex and dynamic API response generation.
Last updated
{{ sum(split (Request.Body 'jsonpath' '$.price[*]') ' ') '0.00' }}{{ putValue '<variablename>' <value> <outputtotemplate?> }}
{{ multiply <number1> <number2> '<format>' }}
{{ csv '<data-source-name>' '<key-column>' '<key-value>' '<return-column>' }}{{ putValue 'linetotalsbeforediscounts' (multiply (this.quantity) (csv 'products' 'upc' 'this.upc' 'price') '') false}}