Math function

This function is used to perform arithmetic operations (+,-,*,/) between given two numbers. Use sum for addition, minus for subtraction, multiply for multiplication and divide for division in the math function.

Syntax: ${__math(operator,first number,second number)}

Example: ${__math(sum,5,10)} ${__math(minus,5,3)} ${__math(multiply,5,3)} ${__math(divide,10,2)}

Two numbers used in this function can be static or dynamic (coming from variables etc.)

Example: ${__math(multiply,${x},${y})} Here, x and y are two local variables.

Was this page helpful?