Conditional formatting in Habpanel custom template

hi there, after playing around with habpanel widgets, I’m starting my own template.

I would like to change the color value for the font of a numeric value.
In the sitemap I would do something like this:

        Text item=Aqi_Level valuecolor=[

using angular js I can switch between 2 colors with:
ng-style="{ color: itemValue(‘OFF’?‘red’:‘green’ }"

but, what if I would have more conditions?