Arithmetic on variables?


#1

Would it be possible to perform some simple arithmetic operations (addition, multiplication) on variables with a numerical value and use the result as a new variable?


#2

do you developing you custom plugin?
for example if we have some sql plugin in use, we can write query like:

select hostname, max(network.send* $multiplier)
from
hardware

after that query variables replaced with variable value, for example

select hostname, max(network.send* 1024)
from
hardware


#3

I was hoping I would be able to do something like:

$NewVar = $MyVar1 * $MyVar2