Text element background colour

Hi,

I’m trying to have the colour of a text elements background change depending on the text within it which is pulled from an API and is a percentage value. I can’t seem to work it out I am new to bubble so could be something simple? Or not possible? :man_facepalming:

If it is always a number (percentage) you can probably use conditional statements. “When [value from api] < 50 and [value from api] > 25” set font color to orange