# Vision - Adding blinking feature into expression for border color

**URL:** <https://forum.inductiveautomation.com/t/vision-adding-blinking-feature-into-expression-for-border-color/109835>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [August 15, 2025, 8:02pm UTC](https://forum.inductiveautomation.com/t/vision-adding-blinking-feature-into-expression-for-border-color/109835 "2025-08-15T20:02:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![warren](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@warren](https://forum.inductiveautomation.com/u/warren)\
**Post date:** [August 15, 2025, 8:02pm UTC](https://forum.inductiveautomation.com/t/vision-adding-blinking-feature-into-expression-for-border-color/109835/1 "2025-08-15T20:02:55Z")

</div>

I have a basic script to switch border color given an integer value change. I’d like to add a feature where if a certain event occurs in the system, I can make the border color blink. This would need to occur only while the variable is equal to 1 and the event occurs. Script would otherwise remain normal where values = solid colors.

```python
toBorder(
  "line;" +
  switch(
    {[default]PLC/INTERNAL/OVERVIEW/STARTUP TREE/INIT_STARTUP ROUGHING PRESSURE},
    0, 1, 2, 3,
    "0,0,0,255", // black
    "255,153,0,255", // yellow
    "0,204,51,255", // green
    "255,0,0,255", // red
    "0,0,0,255" // fallback: black
  ) +
  ";2"
)

```

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [August 15, 2025, 9:50pm UTC](https://forum.inductiveautomation.com/t/vision-adding-blinking-feature-into-expression-for-border-color/109835/2 "2025-08-15T21:50:55Z")

</div>

Use a custom property and custom styles. Much easier and it will animate.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 15, 2025, 10:19pm UTC](https://forum.inductiveautomation.com/t/vision-adding-blinking-feature-into-expression-for-border-color/109835/3 "2025-08-15T22:19:02Z")

</div>

More info on the style customizer (absolutely the way to go here):

> **[Vision Component Customizers | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/vision/working-with-vision-components/vision-component-customizer#style-customizer)**
>
> The Vision module provides a number of customizers to configure components in ways that are more complex or detailed for basic properties.
