Hi,
We are trying to use the "if" to tuneup a reply when outside of the expected range. Could you please validate the expression below, it does not work as we expected.
if ([('%SuggestedReply%' - '%SuggestedLastReply%') * 100 div 100000000] > 101) 100;else [('%SuggestedReply%' - '%SuggestedLastReply%') * 100 div 1000000000]
We would like that if teh expression 1 result is over 101, then the reply should be 100.
Thanks for helping.
Regards,
Jromariz.
IF EXPRESSION
You should remove [] from if-expression, use round brakets there.
if ((('%SuggestedReply%' - '%SuggestedLastReply%') * 100 div 100000000) > 101) 100;else [('%SuggestedReply%' - '%SuggestedLastReply%') * 100 div 1000000000]
Also I think "div 100000000" does not have any sense. Do you want to check if '%SuggestedReply%' - '%SuggestedLastReply% > 0.00000001?
Normally HostMonitor does not use 8 digits after dot for test results so such precision is impossible. Unless you are using some custom script
Regards
Alex
if ((('%SuggestedReply%' - '%SuggestedLastReply%') * 100 div 100000000) > 101) 100;else [('%SuggestedReply%' - '%SuggestedLastReply%') * 100 div 1000000000]
Also I think "div 100000000" does not have any sense. Do you want to check if '%SuggestedReply%' - '%SuggestedLastReply% > 0.00000001?
Normally HostMonitor does not use 8 digits after dot for test results so such precision is impossible. Unless you are using some custom script

Regards
Alex