Alert when value does not change

Alert when value does not change

I have a script monitor that will go and get the current document count from my ElasticSearch cluster.  Since we are using this for log collect the value is consistently changing.  Mostly up but once a day when it run through its cleanup the value will go down.

How can I configure thresholds to alert only when the value did not change from its previous value?

if {currentValue} == {previousValue Then {sendAlert}
              New to ADManager Plus?

                New to ADSelfService Plus?