In itself a very simple task that I could not (yet) solve properly. If the value EnBw_Aktuell is less than zero I want to display the number in green and if the value is greater than zero then red.
My comparison *ng-if = “itemValue (EnBw_Aktuell) <‘0.0’” does not deliver the desired result. So there is still something wrong. I suspect there is a problem with the variable types / number types. My attempts have not yet delivered a result.
However, there is no documentation where I can read. That’s why I asked for a solution and also for good documentation on the topic.
I guess “EnBw_Aktuell” is the name of the item you want to check, so you have to pass it to “itemState” (“itemValue” might also work but it’s deprecated) as a string. Also, “itemState” gives you a string, so you cant use “<” to compare it.