Skip to main content
1-Visitor
July 22, 2016
Solved

How to use different text color / highlight to represent different conditions

  • July 22, 2016
  • 3 replies
  • 3547 views

Hi all, I have a simple example attached regarding my question. If I have a variable, which depends on the input condition. Can I set the text color or highlight of the output, to represent different input conditions? In this example, if my output displays "RIGHT", I want to set it to green; likewise, if the output is "WRONG", I want to set the text to red. Would anyone teach me how to do it? Thank you!

Best answer by RichardJ

Here's a scripted component (two, in fact) that does what you want.

3 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
July 22, 2016

Here's a scripted component (two, in fact) that does what you want.

24-Ruby IV
July 23, 2016

Thru using an Excel sell - open please the attach

yhuang-31-VisitorAuthor
1-Visitor
July 23, 2016

Hi Valery, thank you! Would you also share how you did it in the EXCEL file? I am not able to see your Excel expressions.

12-Amethyst
July 23, 2016

Hi. Attached isn't what you want, but can be modify to get it. The attached use a picture tool with grayscale setup, but some color can be added defining the picture tool as RGB.

Best regards.

Alvaro.

12-Amethyst
July 23, 2016

Some color added.

Alvaro

COLOR.gif