Using AND OR inside itemValue

Hi Guys,

Im trying to light up an icon if either itemValue = ON.

This is my syntax, which doesnt quite work.

<div class="icon on" ng-if="(itemValue('gYamaha')=='ON' || itemValue('FrontRoom_WX30_Power')=='ON')">

May someone point me in the right direction please?


That sounds like the perfect situation for using a Group which would show On if either item is On. Displaying the Group item would solve your problem.

Yes, I can solve it with a group but id rather solve it using an && or || given only two items.