Here you go:
Set the fill property to something like this:
If(Value(Match(Label28.Text, "\d+").FullMatch)>10, Red, RGBA(0, 0, 0, 0))
Label28 is where my text is. I used your example: This REST service took 50 seconds to execute. You can replace Label28 with your label or wherever the text is. Also, I used Red or No Fill. You can replace RGBA(0,0,0,0) with Gray.
Let me know if this works.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!
Hardit Bhatia
https://www.thepoweraddict.com