$duration() is reciprocal (converts in both directions), so you can do this:
Code:
if ($duration(%var) >= $duration(10m)) { do }
else { dont }


It will convert something like 1wk 4days 22hrs 10mins into a number of seconds and compare that with the number of seconds in 10m.


Spelling mistakes, grammatical errors, and stupid comments are intentional.