Text not changing color when a certain command is declared on app when connected to ESP32

I have got an ESP32 interfaced with an app I created on MIT app inventor. I want to chnage the text color when I press a button. So, when I press a button, the text/number should change color to green if the text/number is between 0 and 5, or 13 and 18, or 43 and 48. I would appreciate it if anyone would help me out with this

you just need a simple way :grin:
blocks

Where is the text number Rohan? Is it in a TextBox, a Label, or on the Button itself?
ChangeTextColour.aia (2.4 KB)