@Jared-Wiltshire said in Change colour depending on two variables (SVG custom dashboard):
<ma-svg> <div ma-selector="#meterState001 tspan" ng-bind="plug1.value ? (switch1.value ? 'Charging' : 'Plugged In') : (switch1.value ? 'Error' : 'Empty')"></div> </ma-svg>Ternary operators should work, the only issue I can see with this is that there is a curly brace at the start of the expression.
Your code should look like
You are a star @Jared-Wiltshire!!! :) Thanks so so much! :)
I didn't know ng-bind only works with strings.