Brekeke SIP Server Wiki

$math.eval

Evaluate a math expression

Syntax:
$math.eval(expression)

 

Parameters:

expression – a math expression which can include add +, subtract -, multiply *, divide / or modulo % operations.

 

Returns:

The result of math expression.

 

Version Since:

1.0

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$math.eval("1+1") = (.+)

Get the result of math expression 1+1 and assign the result to the parentheses after equal sign.

Yes No
Suggest Edit