With noise-free data, this is easy. Just place the value in a feedback node and compare the previous value with the current value. If the are equal, the condition is met.
If you have any kind of noise, you could use the "point-by-point linear fit" with a suitable history size and check if the slope is below a certain threshold.