See also: calc (Calculate expression)
$dif calculates the difference between two values. The first parameter is the minuend, all other parameters are the subtrahends.
Tooltip
Syntax: $dif(a,b[,c[...]])
Parameter
Description
aThe minuend of the subtraction, a can be a value (e.g. '5'), a list (e.g. $el(3,true)) or a reference to a value (e.g. $el(3)).
other parametersOther parameters of type a, the subtrahenders.
Example: $dif(3,5) – returns 3-5=-2$dif(3,5,7) – returns 3-5-7=-9
Syntax
$dif( a , b[, c[...]] )
Parameter
Name | Description |
|---|---|
a | The minuend of the subtraction, a can be a value (e.g. ' 5 '), a list (e.g. $el(3,true) ) or a reference to a value (e.g. $el(3) ). |
Other parameters | Other parameters of type a, the subtrahend. |
Return value
The result of the subtraction as a numerical value.
Example
$dif( $el(3), $el(4) )