Multistate indicator

Multistate indicator

I have a variable that displays 9 device states: No mode, Hand (Local), Maintenance, Override, Program...
How to display these states in the same text when the value changes.  And similarly these 9 values ​​display 9 different images