I’m trying to use a switch statement on itemValue to show a consistent on/off state for an item which can have various different values depending on where it was set (note I’m using a custom widget for this). The below seems to always show ?? no matter what the state. Am I doing it right?
@Udo_Hartmann thanks. In this instance I’m using a template (actually custom widget) and the value is coming in from an MQTT server which is set by different software, so not always possible to know what format it will be in (which is why I’d like to use a switch statement like above).
@mattwire I updated AngularJS to 1.5.9 tonight, so your template above with ng-switch-when-separator should work better when you update to the newest version.