cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

yhuang-3
1-Visitor

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

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!

ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:yhuang-3)

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

View solution in original post

6 REPLIES 6
RichardJ
19-Tanzanite
(To:yhuang-3)

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

Thru using an Excel sell - open please the attach

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.

You can insert the Excel component and show two cells with different color:

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.

Some color added.

Alvaro

COLOR.gif

Announcements

Top Tags