Method
subtract — subtract two numbers and returns the result.
Description
Subtraction is an arithmetic operation that represents the operation of removing objects from a collection.
Minimum number of arguments for this method is two. Subtracts the second parameter value from the first parameter value.
Structure of the method:
subtract(a,b)
Parameters
a — First parameter of type number
b — Second parameter of type number
Examples
{% set a= 12.5 %} {% set b = 5 %} {% set total = subtract(a,b)%} {{total}} //Output: 7.5
To stay updated with the latest features, news and how-to articles and videos, please join our group on Facebook, Flexie CRM Academy and subscribe to our YouTube channel Flexie CRM.