I want to control the background color of a component based on its state. It should switch between two colors, both defined by memory tags. This could work either through an expression binding using case or through the Style Customizer + cell update binding.
Is one way better than the other? Is there something else I’m missing entirely?
Ignition V8.0.10
Vision
Edit: Case statement example
case({Root Container.Button.state},
0,{[default]Engineering/hmiStyleTags/colors/standardPalette/cyan},
1,{[default]Engineering/hmiStyleTags/colors/standardPalette/green},
2,{[default]Engineering/hmiStyleTags/colors/standardPalette/red},
3,{[default]Engineering/hmiStyleTags/colors/standardPalette/violet},
{[default]Engineering/hmiStyleTags/colors/standardPalette/grey})
vs.