This'll decrease the value in %var by 1 every 1/10th of a second (or 100 milliseconds) but only if %var has a value greater than 0
Code:
/timer -m 0 100 { if (%var > 0) { .dec %var } }