Arithmetic operations
You can perform simple addition, subtraction, multiplication and division between any two numbers using the following functions.
Note that these functions can be embedded into other functions.
That means they will return the result, either directly into the template for rendering as part of the response, or if they are enclosed in another function, then the result will be returned into that function.
Addition
example:
Subtraction
example:
Multiplication
example:
Division
example:
Summing Arrays
You can also sum an array of numbers using the following function:
example 1:
example 2:
Last updated