# Change DiodeOnColor based on boolean value

**URL:** <https://forum.inductiveautomation.com/t/change-diodeoncolor-based-on-boolean-value/108292>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 9, 2025, 9:03pm UTC](https://forum.inductiveautomation.com/t/change-diodeoncolor-based-on-boolean-value/108292 "2025-07-09T21:03:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@casper](https://forum.inductiveautomation.com/u/casper)\
**Post date:** [July 9, 2025, 9:03pm UTC](https://forum.inductiveautomation.com/t/change-diodeoncolor-based-on-boolean-value/108292/1 "2025-07-09T21:03:14Z")

</div>

I think it would be super cool to change the color of the DiodeOnColor based on some booleans. These bools are already part of the Views Params. I am just struggling to figure out what binding type to use, and if it should be expression, how such an expression should be written.

Thanks in advance!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/4/1450efb4990d24e8733427a38f5b3451d41b1b43.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 9, 2025, 11:15pm UTC](https://forum.inductiveautomation.com/t/change-diodeoncolor-based-on-boolean-value/108292/2 "2025-07-09T23:15:44Z")

</div>

Use an expression. The syntax would be something like,

```python
{view.params.ALARM.ALM1}
|| {view.params.ALARM.ALM2}
|| {view.params.ALARM.ALM3}

```

You can drag and drop them into the expression editor.

See the Expression Language Operators:

> **[Expression Language and Syntax | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/expression-language-and-syntax#operators)**
>
> Expression Language

Be careful using the LED indicator. It's hard to read way out of date - think 1970s - although the black LEDs in your screengrab have a post-modern look about them. Use a label instead where the typeface will be much more legible.
