Conditionally select a variable

Is it possible to isolate a variable depending on its value?

eg. automatically highlight this green variable:

variable = "acceptable" 

but if it changes to:

 variable = "unacceptable" 

The backlight changes to red.

+5
source share
2 answers

I think you need some kind of service to determine the mood from the data the variable contains.

For example, I can easily call:

https://azure.microsoft.com/en-in/services/cognitive-services/text-analytics/

to distinguish between "acceptable" and "unacceptable." In the link, you can actually call the service with both words and see that in the first case, the result returns 98%, and for the other - 2%. You can use this value even while generating a smooth range of rgb colors.

+1
source

I don’t know if you can get exactly what you want, but it can close you.

From the link:

Export the results to an excel object, and that object displayed on your mathcad worksheet may be a way.

also:

What you are looking for can be done in Mathcad 15 (and below) using script components - text fields. Prime does not have this feature.

https://community.ptc.com/t5/PTC-Mathcad-Questions/Is-there-a-way-to-add-conditional-formatting/td-p/328451

0
source

All Articles