Actions and rules may use certain numeric operators. In all cases the argument may be a number or an expression that evaluates as a number.
- - (i.e. subtraction)
- -= (i.e. decrement)
- ... (i.e. range)
- * (i.e. multiplication)
- / (i.e. division)
- + (i.e. addition)
- + (i.e. string concatenation)
- += (i.e. increment)
- abs(sourceNum)
- atan(radiansNum)
- avg_if(scope, condition, expressionStr)
- avg(scope, expressionStr)
- ceil(sourceNum)
- cos(radiansNum)
- degrees(radiansNum)
- exp(powerNum)
- floor(sourceNum)
- List/Set.sum_if(loopVar, condition[, expressionStr])
- List/Set.sum()
- log(sourceNum)
- max(numberList)
- min(numberList)
- mod(sourceNum, modulusNum)
- Number.ceil()
- Number.floor()
- Number.round()
- pow(sourceNum, powerNum)
- radians(degreesNum)
- rand([maxNumber])
- round(sourceNum)
- sin(sourceNum)
- sqrt(sourceNum)
- sum_if(scope, condition, expressionStr)
- sum(scope, expressionStr)
- tan(radiansNum)
For example:
$Width=5+log($WordCount);
$Datum=2*cos(radians($Angle));
Comparisons and equality tests are described separately under Basic Comparison Operators.