# Expression for a progress bar if exceeds...?

**URL:** <https://forum.inductiveautomation.com/t/expression-for-a-progress-bar-if-exceeds/104758>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [April 6, 2025, 11:56pm UTC](https://forum.inductiveautomation.com/t/expression-for-a-progress-bar-if-exceeds/104758 "2025-04-06T23:56:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 7, 2025, 12:07am UTC](https://forum.inductiveautomation.com/t/expression-for-a-progress-bar-if-exceeds/104758/2 "2025-04-07T00:07:53Z")

</div>

Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).  
That allows you to post the code in a readable format as shown below. This in turn reveals some strange syntax and redundant `( )` occurrences.

```python
{[default]AZ ASRS Conveyor System/Wave Control/C7-1 BB1001A/N701:10}
  / {[default]AZ ASRS Conveyor System/Wave Control/C7-1 BB1001A/N701:11.value} 
  * 100
  if(
      (
        ({Root Container.Progress Bar.value} > 100, 
          color(255, 0, 0),
          if({Root Container.Progress Bar.value} == 100, 
            color(0, 0, 255), 
            color(0, 255, 0)
        )
      )
    )
  )
)

```

Can you explain your expression logic?

---

_[View the full topic](https://forum.inductiveautomation.com/t/expression-for-a-progress-bar-if-exceeds/104758)._
