IF in text LOW:HIGH

If temp == 127.00, I need to print text_err and vice versa text_ok
I would like to use IF in the text so that I don't have to deal with IF outside. I will have about 25 DS18B20 thermometers there and I want to check the color status.

IF in text:

(temp == 127.0) text_err : text_ok