Hallo,
I need to check an item value if it differs more than the allowed tolerance. It doesn't matter in which direction it differs. Of course I could do this like follows:
Is there a better way without the need to compare against a fixed minimum and maximum value? I'd like to do this like this pseudo code:
Regards
Pascal
I need to check an item value if it differs more than the allowed tolerance. It doesn't matter in which direction it differs. Of course I could do this like follows:
Code:
# Target value: 10
# Max tolerance: 5%
{host1:item2.last()}>10.5 or {host1.item2.last()}<9.5
Code:
abs({host1:item2.last()}-10)>10*0.05
Pascal